remove NetworkTransactionService.submit() 39/83839/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 21 Aug 2019 09:18:16 +0000 (11:18 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 21 Aug 2019 09:21:14 +0000 (11:21 +0200)
now completely replaced by commit()

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ie6bbdcfb1190dca08534f45e795b0c0a851d4951

common/src/main/java/org/opendaylight/transportpce/common/network/NetworkTransactionImpl.java
common/src/main/java/org/opendaylight/transportpce/common/network/NetworkTransactionService.java
common/src/main/java/org/opendaylight/transportpce/common/network/RequestProcessor.java

index beb2a2f05c83baf94e4a706c14b413e3d160c72d..a6a9f785440fae96e4fb7ac0ecf4da03d4bf9c11 100644 (file)
@@ -50,11 +50,6 @@ public class NetworkTransactionImpl implements NetworkTransactionService {
         requestProcessor.put(store, path, data);
     }
 
-    @Deprecated
-    public ListenableFuture<Void> submit() {
-        return requestProcessor.submit();
-    }
-
     public FluentFuture<? extends @NonNull CommitInfo> commit() {
         return requestProcessor.commit();
     }
index f06b969390def3e7073c39ff1b188b0b3e67eaf5..8c3f5c052dd9cfbf368a7bbb78b760b63cfabe8e 100644 (file)
@@ -37,9 +37,6 @@ public interface NetworkTransactionService {
     <T extends DataObject> void merge(LogicalDatastoreType store, InstanceIdentifier<T> path, T data,
                                       boolean createMissingParents);
 
-    @Deprecated
-    ListenableFuture<Void> submit();
-
     FluentFuture<? extends @NonNull CommitInfo> commit();
 
     void close();
index d3d82f0ac8637884439bb33254d048f4c6fbf6eb..9ce82ed1717e4947e4be4b815e867fe05b74afc6 100644 (file)
@@ -94,16 +94,6 @@ public class RequestProcessor {
         rwTx.merge(store, path, data);
     }
 
-    @Deprecated
-    public ListenableFuture<Void> submit() {
-        acquireLock();
-        ListenableFuture<Void> future = null;
-        future = rwTx.submit();
-        releaseLock();
-        resetRwTx();
-        return future;
-    }
-
     public FluentFuture<? extends @NonNull CommitInfo> commit() {
         acquireLock();
         FluentFuture<? extends @NonNull CommitInfo> future = null;