From b362de603e3ae16c189cea7b5bbcbf25fed3ef22 Mon Sep 17 00:00:00 2001 From: leventov Date: Fri, 11 Dec 2015 18:40:59 +0300 Subject: [PATCH] Remove unused remoteOpContext() and remoteItContext() methods in ReplicatedChronicleMap --- .../chronicle/map/ReplicatedChronicleMap.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java b/src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java index 65abcd1bb..d27c5d9ba 100644 --- a/src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java +++ b/src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java @@ -113,8 +113,6 @@ public class ReplicatedChronicleMap extends VanillaChronicleMap remoteOperations; - transient CompiledReplicatedMapQueryContext remoteOpContext; - transient CompiledReplicatedMapIterationContext remoteItContext; transient BitSetFrame mainSegmentsModIterFrameForUpdates; transient BitSetFrame mainSegmentsModIterFrameForIteration; @@ -478,28 +476,6 @@ public class ReplicatedChronicleMap extends VanillaChronicleMap new CompiledReplicatedMapQueryContext<>(ci, this)); } - /** - * Assumed to be called from a single thread - the replication thread. Not to waste time - * for going into replication thread's threadLocal map, cache the context in Map's field - */ - private CompiledReplicatedMapQueryContext remoteOpContext() { - if (remoteOpContext == null) { - remoteOpContext = (CompiledReplicatedMapQueryContext) q(); - } - assert !remoteOpContext.usedInit(); - remoteOpContext.initUsed(true); - return remoteOpContext; - } - - private CompiledReplicatedMapIterationContext remoteItContext() { - if (remoteItContext == null) { - remoteItContext = (CompiledReplicatedMapIterationContext) i(); - } - assert !remoteItContext.usedInit(); - remoteItContext.initUsed(true); - return remoteItContext; - } - /** * This method does not set a segment lock, A segment lock should be obtained before calling * this method, especially when being used in a multi threaded context.