diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-22 11:45:08 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-22 11:45:08 +0200 |
commit | e76b3561bf60f62afcf4a4d667492beb85f35f85 (patch) | |
tree | b98c2e9277a083699b5fbe14fc5e768506c1ca64 /buildSrc/src/EnvFile.kt | |
parent | 59d5e664cd5cd5b6fc4a40d4ecfee3842871bb2e (diff) | |
download | skyhanni-e76b3561bf60f62afcf4a4d667492beb85f35f85.tar.gz skyhanni-e76b3561bf60f62afcf4a4d667492beb85f35f85.tar.bz2 skyhanni-e76b3561bf60f62afcf4a4d667492beb85f35f85.zip |
Revert "Backend: Add unimined build system (#1456)"
This reverts commit 40309bc8acb7afb37bbc99d7a758c24ffd962b4c.
Diffstat (limited to 'buildSrc/src/EnvFile.kt')
-rw-r--r-- | buildSrc/src/EnvFile.kt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/buildSrc/src/EnvFile.kt b/buildSrc/src/EnvFile.kt deleted file mode 100644 index 76d6fa959..000000000 --- a/buildSrc/src/EnvFile.kt +++ /dev/null @@ -1,12 +0,0 @@ -import java.io.File - -fun parseEnvFile(file: File): Map<String, String> { - if (!file.exists()) return mapOf() - val map = mutableMapOf<String, String>() - for (line in file.readText().lines()) { - if (line.isEmpty() || line.startsWith("#")) continue - val parts = line.split("=", limit = 2) - map[parts[0]] = parts.getOrNull(1) ?: "" - } - return map -} |