summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go1
-rw-r--r--model/storage.go11
2 files changed, 0 insertions, 12 deletions
diff --git a/main.go b/main.go
index 07e1c90..34d2425 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,6 @@ func main() {
storage.Create()
}
log.Printf("Storage directory: %s\n", storage.Path)
- storage.Init(gitDescribe)
model.InitDatabase(config.StorageFilePath)
defer model.CloseDatabase()
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)
- }
- }
-}