I applied for an internal position.  Exciting opportunity but apparently it pissed off my boss...who is retiring and it's that position that's open.  

I can't figure out why the boss is so mad but they interviewed me for it, was a finalist, but unfortunately it looks like it will be offered to someone else.

The raw deal is that as a parting gift my boss is working diligently to eliminate my existing position.  I'm a pretty thick skinned person but this has really taken it's toll on me. I'm so confused, and hurt by how all this went down.   

I've had some depression in the past and I feel like I'm about fall off that ledge. Never did I think this would be the outcome. What the hell.