File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed
google-api-client/src/test/java/com/google/api/client/googleapis Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 1717import com .google .api .client .http .HttpTransport ;
1818import com .google .api .client .http .javanet .NetHttpTransport ;
1919import 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 ;
2420import 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}
You can’t perform that action at this time.
0 commit comments