mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-03 19:29:31 +02:00
multi: remove dead code
This commit is contained in:
@@ -2298,23 +2298,6 @@ func serializeChannelCloseSummary(w io.Writer, cs *ChannelCloseSummary) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func fetchChannelCloseSummary(tx *bbolt.Tx,
|
||||
chanID []byte) (*ChannelCloseSummary, error) {
|
||||
|
||||
closedChanBucket, err := tx.CreateBucketIfNotExists(closedChannelBucket)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
summaryBytes := closedChanBucket.Get(chanID)
|
||||
if summaryBytes == nil {
|
||||
return nil, fmt.Errorf("closed channel summary not found")
|
||||
}
|
||||
|
||||
summaryReader := bytes.NewReader(summaryBytes)
|
||||
return deserializeCloseChannelSummary(summaryReader)
|
||||
}
|
||||
|
||||
func deserializeCloseChannelSummary(r io.Reader) (*ChannelCloseSummary, error) {
|
||||
c := &ChannelCloseSummary{}
|
||||
|
||||
@@ -2679,13 +2662,6 @@ func makeLogKey(updateNum uint64) [8]byte {
|
||||
return key
|
||||
}
|
||||
|
||||
// readLogKey parse the first 8- bytes of a byte slice into a uint64.
|
||||
//
|
||||
// NOTE: The slice must be at least 8 bytes long.
|
||||
func readLogKey(b []byte) uint64 {
|
||||
return byteOrder.Uint64(b)
|
||||
}
|
||||
|
||||
func appendChannelLogEntry(log *bbolt.Bucket,
|
||||
commit *ChannelCommitment) error {
|
||||
|
||||
|
Reference in New Issue
Block a user