Skip to content

Commit

Permalink
fix: remove unused code (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Jan 14, 2021
1 parent 677011e commit 3e9169f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;

/**
Expand All @@ -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.