diff --git a/cmds.go b/cmds.go index f6a3c3021..04ce40052 100644 --- a/cmds.go +++ b/cmds.go @@ -105,11 +105,6 @@ func (cmd *AuthenticateCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *AuthenticateCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *AuthenticateCmd) Method() string { return "authenticate" @@ -182,11 +177,6 @@ func (cmd *GetCurrentNetCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *GetCurrentNetCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *GetCurrentNetCmd) Method() string { return "getcurrentnet" @@ -303,11 +293,6 @@ func (cmd *ExportWatchingWalletCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *ExportWatchingWalletCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisifies the Cmd interface by returning the RPC method. func (cmd *ExportWatchingWalletCmd) Method() string { return "exportwatchingwallet" @@ -411,11 +396,6 @@ func (cmd *GetUnconfirmedBalanceCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *GetUnconfirmedBalanceCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisifies the Cmd interface by returning the RPC method. func (cmd *GetUnconfirmedBalanceCmd) Method() string { return "getunconfirmedbalance" @@ -505,11 +485,6 @@ func (cmd *GetBestBlockCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *GetBestBlockCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *GetBestBlockCmd) Method() string { return "getbestblock" @@ -595,11 +570,6 @@ func (cmd *RecoverAddressesCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *RecoverAddressesCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *RecoverAddressesCmd) Method() string { return "recoveraddresses" @@ -741,11 +711,6 @@ func (cmd *RescanCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *RescanCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *RescanCmd) Method() string { return "rescan" @@ -822,11 +787,6 @@ func (cmd *NotifyBlocksCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *NotifyBlocksCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *NotifyBlocksCmd) Method() string { return "notifyblocks" @@ -904,11 +864,6 @@ func (cmd *NotifyReceivedCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *NotifyReceivedCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *NotifyReceivedCmd) Method() string { return "notifyreceived" @@ -1005,11 +960,6 @@ func (cmd *NotifyNewTransactionsCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *NotifyNewTransactionsCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *NotifyNewTransactionsCmd) Method() string { return "notifynewtransactions" @@ -1092,11 +1042,6 @@ func (cmd *NotifySpentCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *NotifySpentCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *NotifySpentCmd) Method() string { return "notifyspent" @@ -1180,11 +1125,6 @@ func (cmd *CreateEncryptedWalletCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *CreateEncryptedWalletCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *CreateEncryptedWalletCmd) Method() string { return "createencryptedwallet" @@ -1283,11 +1223,6 @@ func (cmd *WalletIsLockedCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *WalletIsLockedCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *WalletIsLockedCmd) Method() string { return "walletislocked" @@ -1406,11 +1341,6 @@ func (cmd *ListAddressTransactionsCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *ListAddressTransactionsCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *ListAddressTransactionsCmd) Method() string { return "listaddresstransactions" @@ -1511,11 +1441,6 @@ func (cmd *ListAllTransactionsCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *ListAllTransactionsCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *ListAllTransactionsCmd) Method() string { return "listalltransactions" @@ -1626,11 +1551,6 @@ func (cmd *GetAddressBalanceCmd) Id() interface{} { return cmd.id } -// SetId satisifies the Cmd interface by setting the ID of the command. -func (cmd *GetAddressBalanceCmd) SetId(id interface{}) { - cmd.id = id -} - // Method satisfies the Cmd interface by returning the RPC method. func (cmd *GetAddressBalanceCmd) Method() string { return "getaddressbalance" diff --git a/notifications.go b/notifications.go index 6f5eb208c..b074255b4 100644 --- a/notifications.go +++ b/notifications.go @@ -154,10 +154,6 @@ func (n *AccountBalanceNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *AccountBalanceNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *AccountBalanceNtfn) Method() string { @@ -252,10 +248,6 @@ func (n *BlockConnectedNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *BlockConnectedNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *BlockConnectedNtfn) Method() string { @@ -349,10 +341,6 @@ func (n *BlockDisconnectedNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *BlockDisconnectedNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *BlockDisconnectedNtfn) Method() string { @@ -438,10 +426,6 @@ func (n *BtcdConnectedNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *BtcdConnectedNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *BtcdConnectedNtfn) Method() string { @@ -540,10 +524,6 @@ func (n *RecvTxNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *RecvTxNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *RecvTxNtfn) Method() string { @@ -644,10 +624,6 @@ func (n *RedeemingTxNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *RedeemingTxNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *RedeemingTxNtfn) Method() string { @@ -734,10 +710,6 @@ func (n *RescanProgressNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification ID is not modified. -func (n *RescanProgressNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *RescanProgressNtfn) Method() string { @@ -832,10 +804,6 @@ func (n *TxNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *TxNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *TxNtfn) Method() string { @@ -934,10 +902,6 @@ func (n *WalletLockStateNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *WalletLockStateNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *WalletLockStateNtfn) Method() string { @@ -1033,10 +997,6 @@ func (n *TxAcceptedNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *TxAcceptedNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *TxAcceptedNtfn) Method() string { @@ -1123,10 +1083,6 @@ func (n *TxAcceptedVerboseNtfn) Id() interface{} { return nil } -// SetId is implemented to satisify the btcjson.Cmd interface. The -// notification id is not modified. -func (n *TxAcceptedVerboseNtfn) SetId(id interface{}) {} - // Method satisifies the btcjson.Cmd interface by returning the method // of the notification. func (n *TxAcceptedVerboseNtfn) Method() string {