Remove unused code in lpc sockets