Removed unused code needed for websockets, issue #718.