Get rid of the Enum.
diff --git a/vars/functions.groovy b/vars/functions.groovy
index 6e02edc..731934a 100644
--- a/vars/functions.groovy
+++ b/vars/functions.groovy
@@ -1,21 +1,5 @@
 #!/usr/bin/env groovy
 
-enum Repository {
-    CORE, BSP
-
-    String toOutDirName() {
-        return this.name().toLowerCase()
-    }
-
-    String toRepoDirName(String boardName) {
-        if (this == Repository.CORE) {
-            return this.name().toLowerCase()
-        } else {
-            return "${this.name().toLowerCase()}-${boardName}"
-        }
-    }
-};
-
 def initSourceTree(boardName, needsNative = false) {
     sh """
        apt-get update