From fffbae79e9c8b1eb50510dd2b79ddf8de51b856f Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 27 Mar 2022 18:22:28 -0500 Subject: [PATCH] jsonrpc/types: Remove rebroadcastmissed. This removes the type and associated code for the deprecated rebroadcastmissed RPC. This is part of the overall removal of deprecated RPCs related to missed and expired tickets. --- rpc/jsonrpc/types/chainsvrwscmds.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/rpc/jsonrpc/types/chainsvrwscmds.go b/rpc/jsonrpc/types/chainsvrwscmds.go index 96738553..2107c7a4 100644 --- a/rpc/jsonrpc/types/chainsvrwscmds.go +++ b/rpc/jsonrpc/types/chainsvrwscmds.go @@ -111,16 +111,6 @@ func NewNotifyNewTicketsCmd() *NotifyNewTicketsCmd { return &NotifyNewTicketsCmd{} } -// RebroadcastMissedCmd is a type handling custom marshaling and -// unmarshaling of rebroadcastmissed JSON RPC commands. -type RebroadcastMissedCmd struct{} - -// NewRebroadcastMissedCmd returns a new instance which can be used to -// issue a JSON-RPC rebroadcastmissed command. -func NewRebroadcastMissedCmd() *RebroadcastMissedCmd { - return &RebroadcastMissedCmd{} -} - // RebroadcastWinnersCmd is a type handling custom marshaling and // unmarshaling of rebroadcastwinners JSON RPC commands. type RebroadcastWinnersCmd struct{} @@ -219,7 +209,6 @@ func init() { dcrjson.MustRegister(Method("notifynewtickets"), (*NotifyNewTicketsCmd)(nil), flags) dcrjson.MustRegister(Method("notifyspentandmissedtickets"), (*NotifySpentAndMissedTicketsCmd)(nil), flags) dcrjson.MustRegister(Method("notifywinningtickets"), (*NotifyWinningTicketsCmd)(nil), flags) - dcrjson.MustRegister(Method("rebroadcastmissed"), (*RebroadcastMissedCmd)(nil), flags) dcrjson.MustRegister(Method("rebroadcastwinners"), (*RebroadcastWinnersCmd)(nil), flags) dcrjson.MustRegister(Method("session"), (*SessionCmd)(nil), flags) dcrjson.MustRegister(Method("stopnotifyblocks"), (*StopNotifyBlocksCmd)(nil), flags)