From 501a435157ff690625e7dab14ba705f9b0e9895d Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sat, 16 Dec 2023 23:38:13 +0800 Subject: [PATCH] Removed unused Plugin declarations --- src/modules/acl/commands.go | 4 +--- src/modules/etc/commands.go | 2 -- src/modules/list/commands.go | 2 -- src/modules/pubsub/commands.go | 2 -- src/modules/string/commands.go | 2 -- 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/modules/acl/commands.go b/src/modules/acl/commands.go index fa62399..82f1882 100644 --- a/src/modules/acl/commands.go +++ b/src/modules/acl/commands.go @@ -17,8 +17,6 @@ type Plugin struct { acl *ACL } -var ACLPlugin Plugin - func (p Plugin) Name() string { return p.name } @@ -339,7 +337,7 @@ func (p Plugin) handleSave(ctx context.Context, cmd []string, server utils.Serve } func NewModule(acl *ACL) Plugin { - ACLPlugin = Plugin{ + ACLPlugin := Plugin{ acl: acl, name: "ACLCommands", commands: []utils.Command{ diff --git a/src/modules/etc/commands.go b/src/modules/etc/commands.go index 0d4fd6e..ffdf6ec 100644 --- a/src/modules/etc/commands.go +++ b/src/modules/etc/commands.go @@ -21,8 +21,6 @@ type Plugin struct { description string } -var SetModule Plugin - func (p Plugin) Name() string { return p.name } diff --git a/src/modules/list/commands.go b/src/modules/list/commands.go index 602731a..73c925a 100644 --- a/src/modules/list/commands.go +++ b/src/modules/list/commands.go @@ -18,8 +18,6 @@ type Plugin struct { description string } -var ListModule Plugin - func (p Plugin) Name() string { return p.name } diff --git a/src/modules/pubsub/commands.go b/src/modules/pubsub/commands.go index 5f7b7b9..d72f7f3 100644 --- a/src/modules/pubsub/commands.go +++ b/src/modules/pubsub/commands.go @@ -15,8 +15,6 @@ type Plugin struct { pubSub *PubSub } -var PubSubModule Plugin - func (p Plugin) Name() string { return p.name } diff --git a/src/modules/string/commands.go b/src/modules/string/commands.go index 7d4fdce..65741d1 100644 --- a/src/modules/string/commands.go +++ b/src/modules/string/commands.go @@ -15,8 +15,6 @@ type Plugin struct { description string } -var StringModule Plugin - func (p Plugin) Name() string { return p.name }