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.