From 96358959b4444c13374ba2c8defcafc764389188 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 19 Sep 2024 17:04:08 +0300 Subject: [PATCH] remove unused code --- internal/storage/storageservice.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/storage/storageservice.go b/internal/storage/storageservice.go index b31b67d..a3f50d6 100644 --- a/internal/storage/storageservice.go +++ b/internal/storage/storageservice.go @@ -13,14 +13,6 @@ import ( "git.defalsify.org/vise.git/resource" ) -func ensureDbDir(dbDir string) error { - err := os.MkdirAll(dbDir, 0700) - if err != nil { - return fmt.Errorf("state dir create exited with error: %v\n", err) - } - return nil -} - type StorageService interface { GetPersister(dbDir string, ctx context.Context) (*persist.Persister, error) GetUserdataDb(dbDir string, ctx context.Context) db.Db