Skip to content

Commit 6c0a753

Browse files
author
Timothy Lim
committed
Remove app ID
1 parent 99fe92c commit 6c0a753

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

intercom-java/src/main/java/io/intercom/api/Intercom.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public class Intercom {
66

77
static class Context {
88
private volatile String token;
9-
private volatile String appID;
109
private volatile int connectionTimeout = 3 * 1000;
1110
private volatile int requestTimeout = 60 * 1000;
1211
private volatile boolean requestUsingCaches = false;
@@ -73,14 +72,6 @@ public static void setHttpConnectorSupplier(HttpConnectorSupplier supplier) {
7372
Intercom.httpConnectorSupplier = supplier;
7473
}
7574

76-
public static String getAppID() {
77-
return getContext().appID;
78-
}
79-
80-
public static void setAppID(String appID) {
81-
getContext().appID = appID;
82-
}
83-
8475
public static void setToken(String token) {
8576
Context context = getContext();
8677
context.token = token;

intercom-java/src/test/java/io/intercom/api/IntercomTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public void testToken() {
3838
public void testStaticContext() throws Exception {
3939
Intercom.setToken("t1");
4040
assertEquals("t1", Intercom.getToken());
41-
Intercom.setAppID("app1");
42-
assertEquals("app1", Intercom.getAppID());
4341
Intercom.setConnectionTimeout(98765);
4442
assertEquals(98765, Intercom.getConnectionTimeout());
4543
Intercom.setRequestTimeout(12345);
@@ -125,7 +123,6 @@ class ThreadTester implements Runnable {
125123
@Override
126124
public void run() {
127125
token = Intercom.getToken();
128-
appId = Intercom.getAppID();
129126
connectionTimeout = Intercom.getConnectionTimeout();
130127
requestTimeout = Intercom.getRequestTimeout();
131128
requestUsingCaches = Intercom.isRequestUsingCaches();
@@ -147,7 +144,6 @@ void waitUntilComplete() throws InterruptedException {
147144
class ThreadLocalTester1 extends ThreadTester {
148145
final Random rnd = new Random();
149146
final String localToken = "tx";
150-
final String localAppId = "appx";
151147
final int localConnectionTimeout = rnd.nextInt();
152148
final int localRequestTimeout = rnd.nextInt();
153149
final boolean localRequestUsingCaches = rnd.nextBoolean();
@@ -156,7 +152,6 @@ class ThreadLocalTester1 extends ThreadTester {
156152
public void run() {
157153
Intercom.clearThreadLocalContext();
158154
Intercom.setToken(localToken);
159-
Intercom.setAppID(localAppId);
160155
Intercom.setConnectionTimeout(localConnectionTimeout);
161156
Intercom.setRequestTimeout(localRequestTimeout);
162157
Intercom.setRequestUsingCaches(localRequestUsingCaches);
@@ -176,7 +171,6 @@ class ThreadLocalTester2 extends ThreadTester {
176171
public void run() {
177172
Intercom.clearThreadLocalContext();
178173
Intercom.setToken(localToken);
179-
Intercom.setAppID(localAppId);
180174
Intercom.setConnectionTimeout(localConnectionTimeout);
181175
Intercom.setRequestTimeout(localRequestTimeout);
182176
Intercom.setRequestUsingCaches(localRequestUsingCaches);

0 commit comments

Comments
 (0)