From: Robert Varga Date: Thu, 8 Dec 2022 19:56:40 +0000 (+0100) Subject: Remove NetconfDeviceFacade.salRegistrations() X-Git-Tag: v3.0.9~9 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=netconf.git;a=commitdiff_plain;h=d1e774911cc58fbea86405843ef505b9867c7535 Remove NetconfDeviceFacade.salRegistrations() This field is unused, remove it. Change-Id: If7ede429196a5136f8680cef2ba245a4c996cf65 Signed-off-by: Robert Varga (cherry picked from commit 2e719163dd762200de1b276f3c18d5b75d9eabe3) (cherry picked from commit 4e646a685aca37e4d5fc78ce713c5d3b37928c02) --- diff --git a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java index 5afd2259f1..d68a798541 100644 --- a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java +++ b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalFacade.java @@ -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 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(); }