Remove unused code in pack.dart.
remove extra line.
git push exceptions => Future.error.
Merge pull request #2644 from dart-lang/remove_unused_code

Remove unused code in git library.