tcp: remove unused functions