Remove a dead function

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron 2020-03-26 13:35:16 +13:00 committed by Connor
parent fbd1ef4cf5
commit db46fe7169

View File

@ -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
}