mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-28 16:01:29 +00:00
Remove unused func.
This commit is contained in:
parent
6e20de7c4a
commit
90b9a98802
1 changed files with 0 additions and 11 deletions
11
cmd.go
11
cmd.go
|
@ -344,14 +344,3 @@ func (w *BtcWallet) ReqNewTxsForAddress(addr string) {
|
||||||
|
|
||||||
btcdMsgs <- msg
|
btcdMsgs <- msg
|
||||||
}
|
}
|
||||||
|
|
||||||
// Marshalling and unmarshalling byte arrays or slices results in ugly
|
|
||||||
// []interface{} slices where each interface{} is a float64. This
|
|
||||||
// function unmangles this to return a byte slice.
|
|
||||||
func UnmangleJsonByteSlice(mangled []interface{}) (unmangled []byte) {
|
|
||||||
unmangled = make([]byte, len(mangled))
|
|
||||||
for i, _ := range mangled[:] {
|
|
||||||
unmangled[i] = byte(mangled[i].(float64))
|
|
||||||
}
|
|
||||||
return unmangled
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue