forked from TrueCloudLab/frostfs-node
[#291] Remove some unused code from repository
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a51211eda7
commit
9a86fff7e0
23 changed files with 14 additions and 399 deletions
|
@ -106,19 +106,6 @@ func (c *testClient) getObject(exec *execCtx) (*objectSDK.Object, error) {
|
|||
return cutToRange(v.obj.Object(), exec.ctxRange()).SDK(), nil
|
||||
}
|
||||
|
||||
func (c *testClient) head(_ context.Context, p Prm) (*object.Object, error) {
|
||||
v, ok := c.results[p.Address().String()]
|
||||
if !ok {
|
||||
return nil, object.ErrNotFound
|
||||
}
|
||||
|
||||
if v.err != nil {
|
||||
return nil, v.err
|
||||
}
|
||||
|
||||
return v.obj.CutPayload().Object(), nil
|
||||
}
|
||||
|
||||
func (c *testClient) addResult(addr *objectSDK.Address, obj *object.RawObject, err error) {
|
||||
c.results[addr.String()] = struct {
|
||||
obj *object.RawObject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue