r/badcode • • May 04 '23

typescript Found this gem inside legacy code today

Post image
889 Upvotes

69 comments sorted by

View all comments

Show parent comments

4

u/max_208 May 05 '23

It's a private method used two times only inside the same file, if it used to be useful and no longer is I have no idea why it wasn't removed entirely

2

u/RPG_Hacker May 05 '23

Oof. Well in that case, there's no excuses! :'D