archive/zip: stop using encoding/binary

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5694085
This commit is contained in:
Andrew Gerrand 2012-02-27 16:29:22 +11:00
parent 28668c3a28
commit 228f44a1f5
3 changed files with 131 additions and 128 deletions

View file

@ -100,16 +100,6 @@ type directoryEnd struct {
comment string
}
func recoverError(errp *error) {
if e := recover(); e != nil {
if err, ok := e.(error); ok {
*errp = err
return
}
panic(e)
}
}
// msDosTimeToTime converts an MS-DOS date and time into a time.Time.
// The resolution is 2s.
// See: http://msdn.microsoft.com/en-us/library/ms724247(v=VS.85).aspx