From e1f7b169aaa99d07fe8ad8e71a0cba2322e7d35f Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Fri, 12 Aug 2016 12:49:46 +0200 Subject: small improvements --- core/object.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'core/object.go') diff --git a/core/object.go b/core/object.go index e5f9a5e..d73ab0f 100644 --- a/core/object.go +++ b/core/object.go @@ -39,14 +39,6 @@ type Object interface { Writer() (ObjectWriter, error) } -// ObjectStorage generic storage of objects -type ObjectStorage interface { - NewObject() Object - Set(Object) (Hash, error) - Get(Hash) (Object, error) - Iter(ObjectType) (ObjectIter, error) -} - // ObjectType internal object type's type ObjectType int8 @@ -110,12 +102,6 @@ func ParseObjectType(value string) (typ ObjectType, err error) { return } -// ObjectIter is a generic closable interface for iterating over objects. -type ObjectIter interface { - Next() (Object, error) - Close() -} - // ObjectLookupIter implements ObjectIter. It iterates over a series of object // hashes and yields their associated objects by retrieving each one from // object storage. The retrievals are lazy and only occur when the iterator -- cgit