mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-01-13 22:00:07 +08:00
Remove a dead function
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
parent
fbd1ef4cf5
commit
db46fe7169
@ -96,13 +96,3 @@ func AllLocksForTxn(txn *MvccTxn) ([]KlPair, error) {
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func LockedError(info ...kvrpcpb.LockInfo) []*kvrpcpb.KeyError {
|
||||
var result []*kvrpcpb.KeyError
|
||||
for _, i := range info {
|
||||
var ke kvrpcpb.KeyError
|
||||
ke.Locked = &i
|
||||
result = append(result, &ke)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user