Remove an unused function in connection.c