ws: fixed #670. Removed unused object variable and code related to it.

Unused object variable removed.