From 13cdbde2e2b44e75dd233b0e54302d70e014fcaf Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 8 Jul 2022 14:50:50 +0300 Subject: [PATCH] [#1523] blobstor: Remove unused types Signed-off-by: Evgenii Stratonikov --- .../blobstor/blobovniczatree/common.go | 79 ------------------- pkg/local_object_storage/blobstor/util.go | 79 ------------------- 2 files changed, 158 deletions(-) delete mode 100644 pkg/local_object_storage/blobstor/blobovniczatree/common.go delete mode 100644 pkg/local_object_storage/blobstor/util.go diff --git a/pkg/local_object_storage/blobstor/blobovniczatree/common.go b/pkg/local_object_storage/blobstor/blobovniczatree/common.go deleted file mode 100644 index f11805b9b..000000000 --- a/pkg/local_object_storage/blobstor/blobovniczatree/common.go +++ /dev/null @@ -1,79 +0,0 @@ -package blobovniczatree - -import ( - "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza" - "github.com/nspcc-dev/neofs-sdk-go/object" - oid "github.com/nspcc-dev/neofs-sdk-go/object/id" -) - -type address struct { - addr oid.Address -} - -// SetAddress sets the address of the requested object. -func (a *address) SetAddress(addr oid.Address) { - a.addr = addr -} - -type roObject struct { - obj *object.Object -} - -// Object returns the object. -func (o roObject) Object() *object.Object { - return o.obj -} - -type rwObject struct { - roObject -} - -// SetObject sets the object. -func (o *rwObject) SetObject(obj *object.Object) { - o.obj = obj -} - -type roBlobovniczaID struct { - blobovniczaID *blobovnicza.ID -} - -// BlobovniczaID returns blobovnicza ID. -func (v roBlobovniczaID) BlobovniczaID() *blobovnicza.ID { - return v.blobovniczaID -} - -type rwBlobovniczaID struct { - roBlobovniczaID -} - -// SetBlobovniczaID sets blobovnicza ID. -func (v *rwBlobovniczaID) SetBlobovniczaID(id *blobovnicza.ID) { - v.blobovniczaID = id -} - -type roRange struct { - rng *object.Range -} - -// Range returns range of the object payload. -func (r roRange) Range() *object.Range { - return r.rng -} - -type rwRange struct { - roRange -} - -// SetRange sets range of the object payload. -func (r *rwRange) SetRange(rng *object.Range) { - r.rng = rng -} - -type rangeData struct { - data []byte -} - -// RangeData returns data of the requested payload range. -func (d rangeData) RangeData() []byte { - return d.data -} diff --git a/pkg/local_object_storage/blobstor/util.go b/pkg/local_object_storage/blobstor/util.go deleted file mode 100644 index c7c9d3b5b..000000000 --- a/pkg/local_object_storage/blobstor/util.go +++ /dev/null @@ -1,79 +0,0 @@ -package blobstor - -import ( - "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza" - "github.com/nspcc-dev/neofs-sdk-go/object" - oid "github.com/nspcc-dev/neofs-sdk-go/object/id" -) - -type address struct { - addr oid.Address -} - -// SetAddress sets the address of the requested object. -func (a *address) SetAddress(addr oid.Address) { - a.addr = addr -} - -type roObject struct { - obj *object.Object -} - -// Object returns the object. -func (o roObject) Object() *object.Object { - return o.obj -} - -type rwObject struct { - roObject -} - -// SetObject sets the object. -func (o *rwObject) SetObject(obj *object.Object) { - o.obj = obj -} - -type roBlobovniczaID struct { - blobovniczaID *blobovnicza.ID -} - -// BlobovniczaID returns blobovnicza ID. -func (v roBlobovniczaID) BlobovniczaID() *blobovnicza.ID { - return v.blobovniczaID -} - -type rwBlobovniczaID struct { - roBlobovniczaID -} - -// SetBlobovniczaID sets blobovnicza ID. -func (v *rwBlobovniczaID) SetBlobovniczaID(id *blobovnicza.ID) { - v.blobovniczaID = id -} - -type roRange struct { - rng *object.Range -} - -// Range returns range of the object payload. -func (r roRange) Range() *object.Range { - return r.rng -} - -type rwRange struct { - roRange -} - -// SetRange sets range of the object payload. -func (r *rwRange) SetRange(rng *object.Range) { - r.rng = rng -} - -type rangeData struct { - data []byte -} - -// RangeData returns data of the requested payload range. -func (d rangeData) RangeData() []byte { - return d.data -}