From a69741f73d1602b417811175b5dbc76779b42032 Mon Sep 17 00:00:00 2001 From: dev-warrior777 <> Date: Sat, 1 Feb 2025 13:56:15 +0800 Subject: [PATCH] client,app,webserver: Remove un-needed configuration variables. --- client/app/config.go | 4 +--- client/webserver/http.go | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/app/config.go b/client/app/config.go index acf1606cc1..dbf39ed410 100644 --- a/client/app/config.go +++ b/client/app/config.go @@ -144,7 +144,6 @@ type Config struct { WebConfig LogConfig MMConfig - AppVersion string // AppData and ConfigPath should be parsed from the command-line, // as it makes no sense to set these in the config file itself. If no values // are assigned, defaults will be used. @@ -198,7 +197,7 @@ func (cfg *Config) Web(c *core.Core, mm *mm.MarketMaker, log dex.Logger, utc boo KeyFile: keyFile, NoEmbed: cfg.NoEmbedSite, HttpProf: cfg.HTTPProfile, - AppVersion: cfg.AppVersion, + AppVersion: userAppVersion(Version), Language: cfg.Language, Tor: cfg.Tor, } @@ -354,7 +353,6 @@ func ResolveConfig(appData string, cfg *Config) error { cfg.MMConfig.EventLogDBPath = defaultMMEventLogDBPath } - cfg.AppVersion = userAppVersion(Version) return nil } diff --git a/client/webserver/http.go b/client/webserver/http.go index 23f4e67ae1..6cc627b738 100644 --- a/client/webserver/http.go +++ b/client/webserver/http.go @@ -294,7 +294,6 @@ func (s *WebServer) handleSettings(w http.ResponseWriter, r *http.Request) { FiatCurrency string Exchanges map[string]*core.Exchange IsInitialized bool - AppVersion string }{ CommonArguments: *common, KnownExchanges: s.knownUnregisteredExchanges(xcs), @@ -302,7 +301,6 @@ func (s *WebServer) handleSettings(w http.ResponseWriter, r *http.Request) { FiatRateSources: s.core.FiatRateSources(), Exchanges: xcs, IsInitialized: s.core.IsInitialized(), - AppVersion: s.appVersion, } s.sendTemplate(w, "settings", data) }