WindowSocket: Remove legacy code