diff options
author | Miguel Molina <miguel@erizocosmi.co> | 2018-07-30 17:11:01 +0200 |
---|---|---|
committer | Miguel Molina <miguel@erizocosmi.co> | 2018-07-30 17:11:01 +0200 |
commit | 6f7fc05543861ee074aa17f75e1d1b5c1b948d48 (patch) | |
tree | faba2e97f21e3156b5de2fd651a02acadfb3f4ca /storage/memory/storage.go | |
parent | d314e86c179f755ca9c92c60d6b0aedd9f568767 (diff) | |
download | go-git-6f7fc05543861ee074aa17f75e1d1b5c1b948d48.tar.gz |
plumbing: packfile, fix package tests
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
Diffstat (limited to 'storage/memory/storage.go')
-rw-r--r-- | storage/memory/storage.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go index a950a62..2e32509 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -91,16 +91,6 @@ type ObjectStorage struct { Tags map[plumbing.Hash]plumbing.EncodedObject } -func NewObjectStorage() *ObjectStorage { - return &ObjectStorage{ - Objects: make(map[plumbing.Hash]plumbing.EncodedObject), - Commits: make(map[plumbing.Hash]plumbing.EncodedObject), - Trees: make(map[plumbing.Hash]plumbing.EncodedObject), - Blobs: make(map[plumbing.Hash]plumbing.EncodedObject), - Tags: make(map[plumbing.Hash]plumbing.EncodedObject), - } -} - func (o *ObjectStorage) NewEncodedObject() plumbing.EncodedObject { return &plumbing.MemoryObject{} } |