From 34a67dfed5dc124b0fe0b824185af95baac76d6e Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 24 Feb 2015 16:10:49 -0500 Subject: [PATCH] tar/storage: remove cruft Reader --- tar/storage/reader.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tar/storage/reader.go diff --git a/tar/storage/reader.go b/tar/storage/reader.go deleted file mode 100644 index e2b7009..0000000 --- a/tar/storage/reader.go +++ /dev/null @@ -1,30 +0,0 @@ -package storage - -import ( - "io" - - "github.com/vbatts/tar-split/archive/tar" -) - -func NewReader(r io.Reader, p Packer) *Reader { - return &Reader{ - tr: tar.NewReader(r), - p: p, - } -} - -// Reader resembles the tar.Reader struct, and is handled the same. Though it -// takes an Packer which write the stored records and file info -type Reader struct { - tr *tar.Reader - p Packer -} - -func (r *Reader) Next() (*tar.Header, error) { - // TODO read RawBytes - return r.tr.Next() -} - -func (r *Reader) Read(b []byte) (i int, e error) { - return r.tr.Read(b) -}