pkg: analysis aided cleanup

Removed a lot of warnings and hints when opening many pkg projects in the editor

R=gram@google.com

Review URL: https://codereview.chromium.org//22284003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25831 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/src/authorization_exception.dart b/lib/src/authorization_exception.dart
index d48c3b1..2a19cd1 100644
--- a/lib/src/authorization_exception.dart
+++ b/lib/src/authorization_exception.dart
@@ -4,8 +4,6 @@
 
 library authorization_exception;
 
-import 'dart:io';
-
 /// An exception raised when OAuth2 authorization fails.
 class AuthorizationException implements Exception {
   /// The name of the error. Possible names are enumerated in [the spec][].
diff --git a/lib/src/expiration_exception.dart b/lib/src/expiration_exception.dart
index 8c8ad1f..9829de1 100644
--- a/lib/src/expiration_exception.dart
+++ b/lib/src/expiration_exception.dart
@@ -4,8 +4,6 @@
 
 library expiration_exception;
 
-import 'dart:io';
-
 import 'credentials.dart';
 
 /// An exception raised when attempting to use expired OAuth2 credentials.
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 759357e..12a429e 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -5,9 +5,6 @@
 library utils;
 
 import 'dart:async';
-import 'dart:isolate';
-
-import "package:crypto/crypto.dart";
 
 /// Adds additional query parameters to [url], overwriting the original
 /// parameters if a name conflict occurs.
diff --git a/test/authorization_code_grant_test.dart b/test/authorization_code_grant_test.dart
index 0d4a5fc..473fee1 100644
--- a/test/authorization_code_grant_test.dart
+++ b/test/authorization_code_grant_test.dart
@@ -5,12 +5,10 @@
 library authorization_code_grant_test;
 
 import 'dart:async';
-import 'dart:io';
 import 'dart:json' as JSON;
 
 import 'package:unittest/unittest.dart';
 import 'package:http/http.dart' as http;
-import 'package:http/testing.dart';
 import 'package:oauth2/oauth2.dart' as oauth2;
 
 import 'utils.dart';
diff --git a/test/client_test.dart b/test/client_test.dart
index d55eef7..922302d 100644
--- a/test/client_test.dart
+++ b/test/client_test.dart
@@ -5,7 +5,6 @@
 library client_test;
 
 import 'dart:async';
-import 'dart:io';
 import 'dart:json' as JSON;
 
 import 'package:http/http.dart' as http;
diff --git a/test/credentials_test.dart b/test/credentials_test.dart
index 768b85a..6a873f2 100644
--- a/test/credentials_test.dart
+++ b/test/credentials_test.dart
@@ -5,7 +5,6 @@
 library credentials_test;
 
 import 'dart:async';
-import 'dart:io';
 import 'dart:json' as JSON;
 
 import 'package:http/http.dart' as http;
@@ -82,7 +81,7 @@
       }), 200, headers: {'content-type': 'application/json'}));
     });
 
-    
+
     expect(credentials.refresh('identifier', 'secret', httpClient: httpClient)
         .then((credentials) {
       expect(credentials.accessToken, equals('new access token'));
@@ -111,7 +110,7 @@
       }), 200, headers: {'content-type': 'application/json'}));
     });
 
-    
+
     expect(credentials.refresh('identifier', 'secret', httpClient: httpClient)
         .then((credentials) {
       expect(credentials.accessToken, equals('new access token'));
diff --git a/test/handle_access_token_response_test.dart b/test/handle_access_token_response_test.dart
index 45860ab..10e6f75 100644
--- a/test/handle_access_token_response_test.dart
+++ b/test/handle_access_token_response_test.dart
@@ -4,7 +4,6 @@
 
 library handle_access_token_response_test;
 
-import 'dart:io';
 import 'dart:json' as JSON;
 
 import 'package:http/http.dart' as http;