Remove NetconfDeviceFacade.salRegistrations() 35/103635/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Dec 2022 19:56:40 +0000 (20:56 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 9 Dec 2022 17:56:09 +0000 (17:56 +0000)
This field is unused, remove it.

Change-Id: If7ede429196a5136f8680cef2ba245a4c996cf65
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java

index 010e71bd2d4787739e1e65193fc4c10a156f0663..eb709158f85dda8b43080306d585cac9c8736bd4 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;
@@ -45,7 +42,6 @@ public final class NetconfDeviceSalFacade implements RemoteDeviceHandler, AutoCl
 
     private final RemoteDeviceId id;
     private final NetconfDeviceSalProvider salProvider;
-    private final List<AutoCloseable> salRegistrations = new ArrayList<>();
     private final DataBroker dataBroker;
     private final String topologyId;
 
@@ -112,9 +108,6 @@ public final class NetconfDeviceSalFacade implements RemoteDeviceHandler, AutoCl
 
     @Override
     public synchronized void close() {
-        for (final AutoCloseable reg : Lists.reverse(salRegistrations)) {
-            closeGracefully(reg);
-        }
         closeGracefully(salProvider);
         closeLockChangeListener();
     }