From 5fd601407fe25c1e4a5b7f81ba448c58b57e0002 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Jan 2024 04:02:40 -0500 Subject: [PATCH] chore: unused function --- api/api.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/api/api.go b/api/api.go index 8f78dc7..0e3d54d 100644 --- a/api/api.go +++ b/api/api.go @@ -16,16 +16,6 @@ func RegisterApis() { }) } -func getModulesBasedOnConfig() []fx.Option { - var modules []fx.Option - for _, entry := range registry.GetRegistry() { - if viper.GetBool("protocols." + entry.Key + ".enabled") { - modules = append(modules, entry.Module) - } - } - return modules -} - func BuildApis(config *viper.Viper) fx.Option { var options []fx.Option enabledProtocols := config.GetStringSlice("core.protocols")