Skip to content

Commit 3e9169f

Browse files
authored
fix: remove unused code (#1664)
1 parent 677011e commit 3e9169f

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,6 @@ public boolean handleResponse(
273273
}
274274
}
275275

276-
@Deprecated
277-
private static class MockExponentialBackOffPolicy extends ExponentialBackOffPolicy {
278-
public MockExponentialBackOffPolicy() {}
279-
280-
@Override
281-
public long getNextBackOffMillis() {
282-
return 0;
283-
}
284-
}
285-
286276
private static class MockTransport extends MockHttpTransport {
287277

288278
final boolean testServerError;

google-api-client/src/test/java/com/google/api/client/googleapis/util/UtilsTest.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
import com.google.api.client.http.HttpTransport;
1818
import com.google.api.client.http.javanet.NetHttpTransport;
1919
import com.google.api.client.json.JsonFactory;
20-
import java.io.IOException;
21-
import java.net.URLDecoder;
22-
import java.util.HashMap;
23-
import java.util.Map;
2420
import junit.framework.TestCase;
2521

2622
/**
@@ -44,19 +40,4 @@ public void testGetDefaultTransport() {
4440
HttpTransport secondCall = Utils.getDefaultTransport();
4541
assertSame(transport, secondCall);
4642
}
47-
48-
public static Map<String, String> parseQuery(String query) throws IOException {
49-
Map<String, String> map = new HashMap<String, String>();
50-
String[] entries = query.split("&");
51-
for (String entry : entries) {
52-
String[] sides = entry.split("=");
53-
if (sides.length != 2) {
54-
throw new IOException("Invalid Query String");
55-
}
56-
String key = URLDecoder.decode(sides[0], "UTF-8");
57-
String value = URLDecoder.decode(sides[1], "UTF-8");
58-
map.put(key, value);
59-
}
60-
return map;
61-
}
6243
}

0 commit comments

Comments
 (0)