[#9999] lens: Drop unused

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-09-23 09:00:44 +03:00
parent 441e31ec1d
commit 6199e5af83
3 changed files with 4 additions and 7 deletions

View file

@ -7,13 +7,13 @@ import (
)
type RawEntry struct {
key, value []byte
key []byte
}
var RawParser Parser = rawParser
func rawParser(key, value []byte) (SchemaEntry, Parser, error) {
return &RawEntry{key: key, value: value}, rawParser, nil
func rawParser(key, _ []byte) (SchemaEntry, Parser, error) {
return &RawEntry{key: key}, rawParser, nil
}
func (r *RawEntry) String() string {

View file

@ -27,7 +27,7 @@ func DefaultBucketParser(key, value []byte) (common.SchemaEntry, common.Parser,
return &DefaultBucket{}, DefaultRecordParser, nil
}
func DefaultRecordParser(key, value []byte) (common.SchemaEntry, common.Parser, error) {
func DefaultRecordParser(key, _ []byte) (common.SchemaEntry, common.Parser, error) {
parts := strings.Split(string(key), "/")
if len(parts) != 2 {
@ -57,7 +57,5 @@ func DefaultRecordParser(key, value []byte) (common.SchemaEntry, common.Parser,
r.addr.SetContainer(cnr)
r.addr.SetObject(obj)
r.data = value[:]
return &r, nil, nil
}

View file

@ -16,7 +16,6 @@ type (
DefaultRecord struct {
addr oid.Address
data []byte
}
)