Remove deprecated leak method 14/81414/2
authorJakub Morvay <jakub.morvay@gmail.com>
Sat, 6 Apr 2019 09:26:05 +0000 (11:26 +0200)
committerJakub Morvay <jakub.morvay@gmail.com>
Sat, 6 Apr 2019 16:04:29 +0000 (18:04 +0200)
This removes already deprecated DOMMountPointServiceImpl
unregisterMountpoint leak method.

Change-Id: I6a36f0625be9657fbe5ff0337129e990a14cd6c1
Signed-off-by: Jakub Morvay <jakub.morvay@gmail.com>
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/DOMMountPointServiceImpl.java

index 3307f9a878608406e75440c43cdf43ec4960aaed..1e34e21e38b4cf3f139b2e64d0d233145ce2dfac 100644 (file)
@@ -64,26 +64,12 @@ public class DOMMountPointServiceImpl implements DOMMountPointService {
         return new AbstractObjectRegistration<DOMMountPoint>(mountPoint) {
             @Override
             protected void removeRegistration() {
-                doUnregisterMountPoint(getInstance().getIdentifier());
+                unregisterMountPoint(getInstance().getIdentifier());
             }
         };
     }
 
-    /**
-     * Unregisters mountpoint.
-     *
-     * @param mountPointId Mountpoint identifier.
-     *
-     * @deprecated this method should never have been exposed publicly - mountpoint should be unregistered by simply
-     *             closing its registration.
-     *
-     */
-    @Deprecated
-    public void unregisterMountPoint(final YangInstanceIdentifier mountPointId) {
-        doUnregisterMountPoint(mountPointId);
-    }
-
-    private void doUnregisterMountPoint(final YangInstanceIdentifier mountPointId) {
+    private void unregisterMountPoint(final YangInstanceIdentifier mountPointId) {
         synchronized (mountPoints) {
             if (mountPoints.remove(mountPointId) == null) {
                 LOG.warn("Removing non-existent mount point {} at", mountPointId, new Throwable());