mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-482 Remove commented-out code
This commit is contained in:
parent
ca81aa5134
commit
5a39bc00ce
@ -30,13 +30,6 @@ type Module struct {
|
||||
Type string
|
||||
}
|
||||
|
||||
// type Position struct {
|
||||
// Height int
|
||||
// Left int
|
||||
// Top int
|
||||
// Width int
|
||||
// }
|
||||
|
||||
type Sigils struct {
|
||||
Checkbox struct {
|
||||
Checked string
|
||||
@ -64,7 +57,6 @@ type Common struct {
|
||||
|
||||
func NewCommonSettingsFromModule(name, defaultTitle string, moduleConfig *config.Config, globalSettings *config.Config) *Common {
|
||||
colorsConfig, _ := globalSettings.Get("wtf.colors")
|
||||
// positionPath := "position"
|
||||
sigilsPath := "wtf.sigils"
|
||||
|
||||
common := Common{
|
||||
|
@ -52,6 +52,25 @@ func NewPositionFromYAML(name string, moduleConfig *config.Config) Position {
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
|
||||
// If any of the position values have an error then we inform the user and exit the app
|
||||
// Common examples of invalid position configuration are:
|
||||
//
|
||||
// position:
|
||||
// top: 3
|
||||
// width: 2
|
||||
// height: 1
|
||||
//
|
||||
// position:
|
||||
// top: 3
|
||||
// # left: 2
|
||||
// width: 2
|
||||
// height: 1
|
||||
//
|
||||
// position:
|
||||
// top: 3
|
||||
// left: 2
|
||||
// width: 2
|
||||
// height: 1
|
||||
//
|
||||
func validatePositions(name string, errs map[string]error) {
|
||||
var errStr string
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user