Remove NetconfDeviceFacade.salRegistrations() 57/103857/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Dec 2022 19:56:40 +0000 (20:56 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 1 Jan 2023 14:08:29 +0000 (15:08 +0100)
This field is unused, remove it.

Change-Id: If7ede429196a5136f8680cef2ba245a4c996cf65
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2e719163dd762200de1b276f3c18d5b75d9eabe3)
(cherry picked from commit 4e646a685aca37e4d5fc78ce713c5d3b37928c02)

netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java

index 5afd2259f1069bbfca3115fdc60b2f8c5057f9b8..d68a7985418eefa0713c38ceec275136909251df 100644 (file)
@@ -8,9 +8,6 @@
 package org.opendaylight.netconf.sal.connect.netconf.sal;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.Lists;
-import java.util.ArrayList;
-import java.util.List;
 import org.opendaylight.mdsal.binding.api.DataBroker;
 import org.opendaylight.mdsal.binding.api.DataTreeIdentifier;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
@@ -46,7 +43,6 @@ public final class NetconfDeviceSalFacade implements AutoCloseable, RemoteDevice
 
     private final RemoteDeviceId id;
     private final NetconfDeviceSalProvider salProvider;
-    private final List<AutoCloseable> salRegistrations = new ArrayList<>();
     private final DataBroker dataBroker;
     private final String topologyId;
 
@@ -113,9 +109,6 @@ public final class NetconfDeviceSalFacade implements AutoCloseable, RemoteDevice
 
     @Override
     public synchronized void close() {
-        for (final AutoCloseable reg : Lists.reverse(salRegistrations)) {
-            closeGracefully(reg);
-        }
         closeGracefully(salProvider);
         closeLockChangeListener();
     }