Skip to content

Commit

Permalink
[DEADCODE] Remove unused methods in ProtectedDataStoreService
Browse files Browse the repository at this point in the history
  • Loading branch information
julianknutsen committed Nov 26, 2019
1 parent 3503fe3 commit 44a11a0
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,6 @@ public void put(P2PDataStorage.ByteArray hash, ProtectedStorageEntry entry) {
});
}

public ProtectedStorageEntry putIfAbsent(P2PDataStorage.ByteArray hash, ProtectedStorageEntry entry) {
Map<P2PDataStorage.ByteArray, ProtectedStorageEntry> map = getMap();
if (!map.containsKey(hash)) {
put(hash, entry);
return null;
} else {
return map.get(hash);
}
}

public boolean containsKey(P2PDataStorage.ByteArray hash) {
return getMap().containsKey(hash);
}

public ProtectedStorageEntry remove(P2PDataStorage.ByteArray hash, ProtectedStorageEntry protectedStorageEntry) {
final ProtectedStorageEntry[] result = new ProtectedStorageEntry[1];
services.stream()
Expand Down

0 comments on commit 44a11a0

Please sign in to comment.