From 9a86741d810542e8d425cedb7225557fced59960 Mon Sep 17 00:00:00 2001 From: avallete Date: Sat, 16 Nov 2024 13:46:45 +0100 Subject: [PATCH] chore: remove saveconfig --- pkg/config/config.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index a2b6d5b32..b1e7ed570 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1253,19 +1253,3 @@ func (e *experimental) validate() error { } return nil } - -// SaveConfig writes the configuration back to config.toml -func SaveConfig(conf config) error { - // Convert config to TOML format - data, err := ToTomlBytes(conf) - if err != nil { - return fmt.Errorf("failed to convert config to TOML: %w", err) - } - - // Write to config.toml - if err := os.WriteFile("config.toml", data, 0644); err != nil { - return fmt.Errorf("failed to write config file: %w", err) - } - - return nil -}