|
@@ -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);
|