Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit f0631cf

Browse files
committed
The world is not ready for configurable MaxTableWidth
1 parent caccc13 commit f0631cf

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

cointop/cointop.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ var DefaultCurrency = "USD"
180180
// DefaultChartRange ...
181181
var DefaultChartRange = "1Y"
182182

183-
// DefaultMaxTableWidth ...
184-
var DefaultMaxTableWidth int = 175
185-
186183
// DefaultMaxChartWidth ...
187184
var DefaultMaxChartWidth int = 175
188185

@@ -237,7 +234,7 @@ func NewCointop(config *Config) (*Cointop, error) {
237234
apiChoice: CoinGecko,
238235
apiKeys: new(APIKeys),
239236
forceRefresh: make(chan bool),
240-
maxTableWidth: DefaultMaxTableWidth,
237+
maxTableWidth: 175,
241238
ActionsMap: ActionsMap(),
242239
cache: cache.New(1*time.Minute, 2*time.Minute),
243240
colorsDir: config.ColorsDir,

cointop/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type ConfigFileConfig struct {
4242
Currency interface{} `toml:"currency"`
4343
DefaultView interface{} `toml:"default_view"`
4444
DefaultChartRange interface{} `toml:"default_chart_range"`
45-
MaxTableWidth interface{} `toml:"max_table_width"`
4645
MaxChartWidth interface{} `toml:"max_chart_width"`
4746
CoinMarketCap map[string]interface{} `toml:"coinmarketcap"`
4847
API interface{} `toml:"api"`
@@ -80,7 +79,6 @@ func (ct *Cointop) SetupConfig() error {
8079
return err
8180
}
8281
if err := ct.loadMaxChartWidthFromConfig(); err != nil {
83-
log.Debug("SetupConfig() ERR", err)
8482
return err
8583
}
8684
if err := ct.loadAPIKeysFromConfig(); err != nil {
@@ -270,7 +268,6 @@ func (ct *Cointop) ConfigToToml() ([]byte, error) {
270268
var currencyIfc interface{} = ct.State.currencyConversion
271269
var defaultViewIfc interface{} = ct.State.defaultView
272270
var defaultChartRangeIfc interface{} = ct.State.defaultChartRange
273-
var maxTableWidth interface{} = ct.maxTableWidth
274271
var maxChartWidth interface{} = ct.State.maxChartWidth
275272
var colorschemeIfc interface{} = ct.colorschemeName
276273
var refreshRateIfc interface{} = uint(ct.State.refreshRate.Seconds())
@@ -312,7 +309,6 @@ func (ct *Cointop) ConfigToToml() ([]byte, error) {
312309
Currency: currencyIfc,
313310
DefaultView: defaultViewIfc,
314311
DefaultChartRange: defaultChartRangeIfc,
315-
MaxTableWidth: maxTableWidth,
316312
MaxChartWidth: maxChartWidth,
317313
Favorites: favoritesMapIfc,
318314
RefreshRate: refreshRateIfc,

0 commit comments

Comments
 (0)