From 34191cb50a5f2329007dad9bdd73fb24f57086ca Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Wed, 8 Mar 2023 14:51:21 -0800 Subject: [PATCH] Removed unnecessary comments from trie/plugin_hooks.go --- trie/plugin_hooks.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/trie/plugin_hooks.go b/trie/plugin_hooks.go index c2e465165..1ef11c60c 100644 --- a/trie/plugin_hooks.go +++ b/trie/plugin_hooks.go @@ -46,23 +46,3 @@ func pluginPostTrieCommit(node common.Hash) { } PluginPostTrieCommit(plugins.DefaultPluginLoader, node) } - -// func PluginGetRPCCalls(pl *plugins.PluginLoader, id, method, params string) { -// fnList := pl.Lookup("GetRPCCalls", func(item interface{}) bool { -// _, ok := item.(func(string, string, string)) -// return ok -// }) -// for _, fni := range fnList { -// if fn, ok := fni.(func(string, string, string)); ok { -// fn(id, method, params) -// } -// } -// } - -// func pluginGetRPCCalls(id, method, params string) { -// if plugins.DefaultPluginLoader == nil { -// log.Warn("Attempting GerRPCCalls, but default PluginLoader has not been initialized") -// return -// } -// PluginGetRPCCalls(plugins.DefaultPluginLoader, id, method, params) -// } \ No newline at end of file