forked from TrueCloudLab/frostfs-node
[#1213] engine: Drop unused
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
10497e9136
commit
7a8ac4907a
1 changed files with 0 additions and 15 deletions
|
@ -151,18 +151,3 @@ func Head(ctx context.Context, storage *StorageEngine, addr oid.Address) (*objec
|
||||||
|
|
||||||
return res.Header(), nil
|
return res.Header(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// HeadRaw reads object header from local storage by provided address and raw
|
|
||||||
// flag.
|
|
||||||
func HeadRaw(ctx context.Context, storage *StorageEngine, addr oid.Address, raw bool) (*objectSDK.Object, error) {
|
|
||||||
var headPrm HeadPrm
|
|
||||||
headPrm.WithAddress(addr)
|
|
||||||
headPrm.WithRaw(raw)
|
|
||||||
|
|
||||||
res, err := storage.Head(ctx, headPrm)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return res.Header(), nil
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue