[#9999] lens: Drop unused
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
441e31ec1d
commit
6199e5af83
3 changed files with 4 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ type (
|
|||
|
||||
DefaultRecord struct {
|
||||
addr oid.Address
|
||||
data []byte
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue