From a364d4330dfd34f953f64e90020f8b8d6f2e82c4 Mon Sep 17 00:00:00 2001 From: Physcik Date: Sat, 10 Jan 2026 17:27:55 +0500 Subject: World storage system change --- engine/Components/Packages/Validation.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 engine/Components/Packages/Validation.go (limited to 'engine/Components/Packages/Validation.go') diff --git a/engine/Components/Packages/Validation.go b/engine/Components/Packages/Validation.go deleted file mode 100644 index 04428d2..0000000 --- a/engine/Components/Packages/Validation.go +++ /dev/null @@ -1,15 +0,0 @@ -package packages - -type Validatable interface { - // If the object is returned invalid this function should return the reason - IsValid() error -} - -// Reads object fron the file and validates it -func ReadValidJSONfromFile(fileLocation string, v Validatable) error { - var err = ReadJSONfromFile(fileLocation, v) - if err != nil { - return err - } - return v.IsValid() -} -- cgit v1.3