Ver código fonte

Remove unused variable

Fix unused variable compilation error
Jiří Engelthaler 6 anos atrás
pai
commit
755abcfc54
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      src/server/ua_subscription_monitoreditem.c

+ 0 - 2
src/server/ua_subscription_monitoreditem.c

@@ -157,8 +157,6 @@ UA_MonitoredItem_init(UA_MonitoredItem *mon, UA_Subscription *sub) {
 
 void
 UA_MonitoredItem_delete(UA_Server *server, UA_MonitoredItem *monitoredItem) {
-    UA_Subscription *sub = monitoredItem->subscription;
-
     if(monitoredItem->monitoredItemType == UA_MONITOREDITEMTYPE_CHANGENOTIFY) {
         /* Remove the sampling callback */
         UA_MonitoredItem_unregisterSampleCallback(server, monitoredItem);