👆 This. In my experience, I’ve seen a lot of developers get upset about “their code” not being used, time wasted, or someone else changing the code after the fact. Who cares? Once you commit that code, it’s no longer your code. It’s the company’s code. Your paycheck will reflect the same amount of money regardless — and if it doesn’t, you may want to find a better employer. 😅
It affected me a lot more in the beginning because I wanted the feel useful. It does feel good to see people use stuff you made, whether it's code or a physical object.
But it's happened to me enough times by now that I don't even care anymore lol. Like you said, as long as I get paid. I try to get my fulfillment from projects outside of work now.
I don't care unless I'm drinking the Kool aid and actually really wanted the feature. If it's not something I personally use: who cares? Bit of a bummer that feels like it was all for nothing, but ultimately I still got paid for that time and effort, which is all I'm really going for anyways.