Skip to content

Commit

Permalink
refactor: remove debug ini functions
Browse files Browse the repository at this point in the history
  • Loading branch information
K4thos committed Dec 30, 2024
1 parent 3ea7f20 commit 43ea092
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 318 deletions.
20 changes: 0 additions & 20 deletions src/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,26 +414,6 @@ func (c *Config) SetValueUpdate(query string, value interface{}) error {
return SetValueUpdate(c, c.IniFile, query, value)
}

// GetIniMappingValue retrieves the INI mapping value based on the query string.
func (c *Config) GetIniMappingValue(query string) (string, error) {
return GetIniMappingValue(c.IniFile, query)
}

// PrintIniMappings prints all INI mappings.
func (c *Config) PrintIniMappings() {
PrintIniMappings(c.IniFile)
}

// PrintValue prints the value based on the query string.
func (c *Config) PrintValue(query string) {
PrintValue(c, query)
}

// PrintStruct prints the parsed struct.
func (c *Config) PrintStruct() {
PrintStruct(c, "")
}

// Save writes the current IniFile to disk, preserving comments and syntax.
func (c *Config) Save(file string) error {
return SaveINI(c.IniFile, file)
Expand Down
Loading

0 comments on commit 43ea092

Please sign in to comment.