[#1213] engine: Drop unused
All checks were successful
DCO action / DCO (pull_request) Successful in 4m15s
Vulncheck / Vulncheck (pull_request) Successful in 4m37s
Build / Build Components (1.21) (pull_request) Successful in 5m8s
Build / Build Components (1.22) (pull_request) Successful in 5m1s
Tests and linters / gopls check (pull_request) Successful in 5m23s
Tests and linters / Staticcheck (pull_request) Successful in 6m6s
Tests and linters / Lint (pull_request) Successful in 7m30s
Pre-commit hooks / Pre-commit (pull_request) Successful in 9m10s
Tests and linters / Tests (1.21) (pull_request) Successful in 10m32s
Tests and linters / Tests with -race (pull_request) Successful in 10m32s
Tests and linters / Tests (1.22) (pull_request) Successful in 11m10s

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-06-28 22:36:29 +03:00
parent 287a2431b7
commit 77866f6715

View file

@ -151,18 +151,3 @@ func Head(ctx context.Context, storage *StorageEngine, addr oid.Address) (*objec
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
}