diff options
Diffstat (limited to 'model/storage.go')
-rw-r--r-- | model/storage.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/model/storage.go b/model/storage.go index 231cbb6..59cd39e 100644 --- a/model/storage.go +++ b/model/storage.go @@ -3,7 +3,6 @@ package model import ( "log" "os" - "path/filepath" ) type Storage struct { @@ -25,13 +24,3 @@ func (s Storage) Create() { log.Fatal(err) } } - -func (s *Storage) Init(version string) { - if version != "" { - vp := filepath.Join(s.Path, "version.txt") - err := os.WriteFile(vp, []byte(version+"\n"), 0644) - if err != nil { - log.Fatal(err) - } - } -} |