--- a/libupnpp/device.cxx
+++ b/libupnpp/device.cxx
@@ -146,8 +146,6 @@
     }
     // LOGDEB("UpnpDevice::sCallBack: deviceid[" << deviceid << "]" << endl);
 
-    unordered_map<std::string, UpnpDevice *> *devmap = 
-        (unordered_map<std::string, UpnpDevice *> *) tok;
     unordered_map<std::string, UpnpDevice *>::iterator it =
         o_devices.find(deviceid);