Remove old code from restclient.h and restclient.cpp