What is my guy friend doing?

We have been friends for a year now. In the beginning things were going great, but now he has virtually replaced me with MY friend, who he met through me! He used to tell me everything about his life, call me for hours. Now he has stopped doing it all, and is doing the exact same things with her! She tells me they discuss everything from movies to his crushes. I am never a priority. When i tried asking him about it, he gave me bs excuses like "i dont have time " and ''im trying to improve my other friendships' on the other hand, fast forward to the last day before uni summer break, he couldnt stop hugging me and got disappointed cuz i was leaving early. he has indirectly admitted to flirting with me in the past, and gets avoidant when i say he's like my brother (as a test). we haven't called or texted in two months now, we only see eachother in group hangouts.

Updates
+1 y
Another detail:

Wherever a mutual friend teases him with me, he denies that he feels anything more for me.
Updates
+1 y
Should be worth mentioning that on a call I once asked him if there was something more between us and he said no.
What is my guy friend doing?
Post Opinion