Removing unused code

Removing some unused code from the connection listener part of the node.