From 97e1442e8ddc9df1fdd84fc0157151cb21f15db2 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 17 Jan 2014 09:43:23 -0500 Subject: [PATCH] Remove exported Version func from wallet package. This function was not implemented (returning zero values) and all versioning is handled internally by the wallet's ReadFrom and WriteTo functions. If the read wallet does not match the latest file version, it is read in the old format, but always written back with the new format. --- wallet/wallet.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index 87d2a1d..b08f6bd 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -827,11 +827,6 @@ func (w *Wallet) IsLocked() bool { return len(w.secret) != 32 } -// Version returns a wallet's version as a string and int. -func (w *Wallet) Version() (string, int) { - return "", 0 -} - // NextChainedAddress attempts to get the next chained address. // If there are addresses available in the keypool, the next address // is used. If not and the wallet is unlocked, the keypool is extended.