diff --git a/libresapi/src/api/FileSharingHandler.cpp b/libresapi/src/api/FileSharingHandler.cpp index 923b97d54..d948a9511 100644 --- a/libresapi/src/api/FileSharingHandler.cpp +++ b/libresapi/src/api/FileSharingHandler.cpp @@ -41,12 +41,6 @@ FileSharingHandler::FileSharingHandler(StateTokenServer *sts, RsFiles *files): addResourceHandler("download", this, &FileSharingHandler::handleDownload); mStateToken = mStateTokenServer->getNewToken(); - mStateTokenServer->registerTickClient(this); -} - -FileSharingHandler::~FileSharingHandler() -{ - mStateTokenServer->unregisterTickClient(this); } void FileSharingHandler::handleWildcard(Request & /*req*/, Response & /*resp*/) diff --git a/libresapi/src/api/FileSharingHandler.h b/libresapi/src/api/FileSharingHandler.h index 1d948bdbf..8b741e80d 100644 --- a/libresapi/src/api/FileSharingHandler.h +++ b/libresapi/src/api/FileSharingHandler.h @@ -30,7 +30,6 @@ class FileSharingHandler: public ResourceRouter { public: FileSharingHandler(StateTokenServer* sts, RsFiles* files); - virtual ~FileSharingHandler(); private: void handleWildcard(Request& req, Response& resp);