Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Apr 20, 2022
1 parent 2af96ed commit f39dbd2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,19 +868,6 @@ func encodeLock(l *provider.Lock) (string, error) {
return b64.StdEncoding.EncodeToString(data), nil
}

func decodeLock(raw string) (*provider.Lock, error) {
data, err := b64.StdEncoding.DecodeString(raw)
if err != nil {
return nil, err
}
l := new(provider.Lock)
err = json.Unmarshal(data, l)
if err != nil {
return nil, err
}
return l, nil
}

// RefreshLock refreshes an existing lock on the given reference
func (fs *eosfs) RefreshLock(ctx context.Context, ref *provider.Reference, newLock *provider.Lock) error {
// TODO (gdelmont): check if the new lock is already expired?
Expand Down

0 comments on commit f39dbd2

Please sign in to comment.