Spearmen in their current incarnation are not better enough against cavalry to make them worth taking over heavy infantry. Which means they are not good enough.
Then what's the point of removing spears from general infantry?
No, the best heavy infantry have spears. Notably Sturgian Veterans, Vlandian Sergeants, Imperial Legionaries, and Khuzait Darkhans.
Surgian Veteran Warriors and Vlandian Sergeants doesn't have spears.
They switch to spears to deal with cavalry and switch to swords to deal with infantry. A lot of lower level infantry have spears as well, I know for a fact the entire Vlandian line all have spears as secondary weapons from peasants all the way to sergeants.
The spear's only purpose right now is to stunlock horses, they are inferior to swords in every other way.
Even if that was true, what's the point of removing spears from general infantry, how it is related?