Deleted useless code in web service thread

Must be done later in the feature-webservices branch.