Skip to content
Permalink
Browse files
fix: remove unused code (#1664)
  • Loading branch information
elharo committed Jan 14, 2021
1 parent 677011e commit 3e9169f1af87dd947d24440f82fd4e0d7d4e4e5a
@@ -273,16 +273,6 @@ public boolean handleResponse(
}
}

@Deprecated
private static class MockExponentialBackOffPolicy extends ExponentialBackOffPolicy {
public MockExponentialBackOffPolicy() {}

@Override
public long getNextBackOffMillis() {
return 0;
}
}

private static class MockTransport extends MockHttpTransport {

final boolean testServerError;
@@ -17,10 +17,6 @@
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;

/**
@@ -44,19 +40,4 @@ public void testGetDefaultTransport() {
HttpTransport secondCall = Utils.getDefaultTransport();
assertSame(transport, secondCall);
}

public static Map<String, String> parseQuery(String query) throws IOException {
Map<String, String> map = new HashMap<String, String>();
String[] entries = query.split("&");
for (String entry : entries) {
String[] sides = entry.split("=");
if (sides.length != 2) {
throw new IOException("Invalid Query String");
}
String key = URLDecoder.decode(sides[0], "UTF-8");
String value = URLDecoder.decode(sides[1], "UTF-8");
map.put(key, value);
}
return map;
}
}

0 comments on commit 3e9169f

Please sign in to comment.