mirror of
				https://github.com/taigrr/wtf
				synced 2025-01-18 04:03:14 -08:00 
			
		
		
		
	Merge pull request #466 from Seanstoppable/moreappcleanup
Remove more app usages which are unnecessary
This commit is contained in:
		
						commit
						745ecbf94d
					
				| @ -12,7 +12,6 @@ const APIURI = "https://api.bamboohr.com/api/gateway.php" | ||||
| type Widget struct { | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app      *tview.Application | ||||
| 	settings *Settings | ||||
| } | ||||
| 
 | ||||
| @ -20,7 +19,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | ||||
| 	widget := Widget{ | ||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||
| 
 | ||||
| 		app:      app, | ||||
| 		settings: settings, | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
| @ -20,7 +20,6 @@ const baseURL = "https://bittrex.com/api/v1.1/public/getmarketsummary" | ||||
| type Widget struct { | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app      *tview.Application | ||||
| 	settings *Settings | ||||
| 	summaryList | ||||
| } | ||||
| @ -30,7 +29,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | ||||
| 	widget := Widget{ | ||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||
| 
 | ||||
| 		app:         app, | ||||
| 		settings:    settings, | ||||
| 		summaryList: summaryList{}, | ||||
| 	} | ||||
|  | ||||
| @ -14,7 +14,6 @@ import ( | ||||
| type Widget struct { | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app          *tview.Application | ||||
| 	device_token string | ||||
| 	settings     *Settings | ||||
| } | ||||
| @ -23,7 +22,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | ||||
| 	widget := Widget{ | ||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||
| 
 | ||||
| 		app:          app, | ||||
| 		device_token: settings.deviceToken, | ||||
| 		settings:     settings, | ||||
| 	} | ||||
|  | ||||
| @ -14,7 +14,6 @@ import ( | ||||
| type Widget struct { | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app           *tview.Application | ||||
| 	priceWidget   *price.Widget | ||||
| 	toplistWidget *toplist.Widget | ||||
| 	settings      *Settings | ||||
| @ -25,7 +24,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | ||||
| 	widget := Widget{ | ||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||
| 
 | ||||
| 		app:           app, | ||||
| 		priceWidget:   price.NewWidget(settings.priceSettings), | ||||
| 		toplistWidget: toplist.NewWidget(settings.toplistSettings), | ||||
| 		settings:      settings, | ||||
|  | ||||
| @ -14,7 +14,6 @@ type Widget struct { | ||||
| 
 | ||||
| 	GithubRepos []*GithubRepo | ||||
| 
 | ||||
| 	app      *tview.Application | ||||
| 	settings *Settings | ||||
| } | ||||
| 
 | ||||
| @ -24,7 +23,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) * | ||||
| 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "repository", "repositories"), | ||||
| 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | ||||
| 
 | ||||
| 		app:      app, | ||||
| 		settings: settings, | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
| @ -16,7 +16,6 @@ import ( | ||||
| type Widget struct { | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app      *tview.Application | ||||
| 	result   string | ||||
| 	settings *Settings | ||||
| } | ||||
| @ -41,7 +40,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | ||||
| 	widget := Widget{ | ||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||
| 
 | ||||
| 		app:      app, | ||||
| 		settings: settings, | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
| @ -23,7 +23,6 @@ type Widget struct { | ||||
| 	wtf.MultiSourceWidget | ||||
| 	wtf.TextWidget | ||||
| 
 | ||||
| 	app      *tview.Application | ||||
| 	settings *Settings | ||||
| } | ||||
| 
 | ||||
| @ -34,7 +33,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) * | ||||
| 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "filePath", "filePaths"), | ||||
| 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | ||||
| 
 | ||||
| 		app:      app, | ||||
| 		settings: settings, | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user