summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go1
-rw-r--r--model/storage.go9
2 files changed, 0 insertions, 10 deletions
diff --git a/main.go b/main.go
index 2eb3342..d43edd2 100644
--- a/main.go
+++ b/main.go
@@ -30,7 +30,6 @@ func main() {
}
model.InitStorage(config.StorageFilePath, gitDescribe)
- defer model.RemoveStorage(config.StorageFilePath)
model.InitDatabase(config.StorageFilePath)
defer model.CloseDatabase()
diff --git a/model/storage.go b/model/storage.go
index e7d1fbc..bfebb6a 100644
--- a/model/storage.go
+++ b/model/storage.go
@@ -24,12 +24,3 @@ func InitStorage(path string, version string) {
log.Printf("Storage directory: %s\n", path)
}
-
-func RemoveStorage(path string) {
- var err error = os.RemoveAll(path)
- if err != nil {
- log.Printf("Failed to remove storage folder: %v\n", err)
- } else {
- log.Printf("Removed storage folder %s\n", path)
- }
-}