Skip to content

Commit e54c3f6

Browse files
authored
Merge pull request #1327 from myronkscott/remove_unused
Remove unused thread local
2 parents 7a07053 + d3c3eff commit e54c3f6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tc-server/src/main/java/com/tc/objectserver/entity/InvokeContextImpl.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
public class InvokeContextImpl implements InvokeContext {
2626

27-
private static ThreadLocal<InvokeContext> INHERITED = new InheritableThreadLocal<>();
28-
2927
public static InvokeContext NULL_CONTEXT=new InvokeContextImpl();
3028

3129
private final long oldestid;
@@ -46,17 +44,6 @@ public InvokeContextImpl(ClientSourceId sourceId, int concurrencyKey, long oldes
4644
this.concurrencyKey = concurrencyKey;
4745
this.oldestid = oldestid;
4846
this.currentId = currentId;
49-
setThreadLocal();
50-
}
51-
52-
private void setThreadLocal() {
53-
if (this.sourceId.isValidClient()) {
54-
INHERITED.set(this);
55-
}
56-
}
57-
58-
public static InvokeContext getCurrentContext() {
59-
return INHERITED.get();
6047
}
6148

6249
@Override

0 commit comments

Comments
 (0)