Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unused code #1664

Merged
merged 2 commits into from Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
}
}