From ba196c87808c9ad8f7ef24e514e7f5689ac33cbd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Wed, 5 Jul 2023 16:33:31 +0200
Subject: [PATCH] Toolbox => Remove unused functions

---
 helpers/Toolbox.ts | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/helpers/Toolbox.ts b/helpers/Toolbox.ts
index 02e52f8..bea427e 100644
--- a/helpers/Toolbox.ts
+++ b/helpers/Toolbox.ts
@@ -11,42 +11,9 @@ class Toolbox {
         return Toolbox._instance;
     }
 
-    public strToBool(str: string): boolean {
-        str = str.toLowerCase().trim();
-        return str === 'true' || str === '1';
-    }
-
     public urlToPath(url: string): string {
         return url.replace(/^([a-z]{3,5}:\/{2})?[a-z.@]+(:[0-9]{1,5})?.(.*)/, '$3').replace('.git', '');
     }
-
-    public randomString(length: number) {
-        let result = '';
-        let characters = 'abcdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789';
-        let charactersLength = characters.length;
-        for ( let i = 0 ; i < length ; i++ ) {
-            result += characters.charAt(Math.floor(Math.random() * charactersLength));
-        }
-        return result;
-    }
-
-    public capitalizingFirstLetter(word: string): string {
-        return word.charAt(0).toUpperCase() + word.slice(1);
-    }
-
-    public capitalizeName(name: string) {
-        return name.trim().replace(/(?:^|\s|-)\S/g, s => s.toUpperCase());
-    }
-
-    public formatHour(hour: string): string {
-        let hourElements = hour.split(':');
-
-        return hourElements[0] + 'h' + hourElements[1];
-    }
-
-    public async sleep(ms: number) {
-        await new Promise(r => setTimeout(r, ms));
-    }
 }
 
 
-- 
GitLab