Skip to content

Commit

Permalink
client,app,webserver: Remove un-needed configuration variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-warrior777 committed Feb 1, 2025
1 parent 6fcf4ef commit a69741f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions client/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
}
Expand Down Expand Up @@ -354,7 +353,6 @@ func ResolveConfig(appData string, cfg *Config) error {
cfg.MMConfig.EventLogDBPath = defaultMMEventLogDBPath
}

cfg.AppVersion = userAppVersion(Version)
return nil
}

Expand Down
2 changes: 0 additions & 2 deletions client/webserver/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,13 @@ 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),
FiatCurrency: core.DefaultFiatCurrency,
FiatRateSources: s.core.FiatRateSources(),
Exchanges: xcs,
IsInitialized: s.core.IsInitialized(),
AppVersion: s.appVersion,
}
s.sendTemplate(w, "settings", data)
}
Expand Down

0 comments on commit a69741f

Please sign in to comment.