aboutsummaryrefslogtreecommitdiffstats
path: root/core/object.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-12 12:49:46 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-12 12:49:46 +0200
commite1f7b169aaa99d07fe8ad8e71a0cba2322e7d35f (patch)
tree50f195024fa492120db0c9822111cc84b0c659ce /core/object.go
parent8948d4b48acfc39462f0c75525bc6b53c1ac59b2 (diff)
downloadgo-git-e1f7b169aaa99d07fe8ad8e71a0cba2322e7d35f.tar.gz
small improvements
Diffstat (limited to 'core/object.go')
-rw-r--r--core/object.go14
1 files changed, 0 insertions, 14 deletions
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