Skip to content

Commit 08c0ca2

Browse files
committed
Remove the fall-back onto Git based configuratins
1 parent 4202a2b commit 08c0ca2

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/assets/ConfigurationDatabase.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -179,25 +179,6 @@ public static File loadFile() {
179179
} catch (IOException e) {
180180
throw new RuntimeException(e.getMessage());
181181
}
182-
if(!PasswordManager.isAnonMode()) {
183-
String username = PasswordManager.getLoginID();
184-
if(username!=null)
185-
try {
186-
File file =ScriptingEngine.fileFromGit("https://github.com/"+username+"/BowlerStudioConfiguration.git", "database.json");
187-
if(file.exists()) {
188-
String contents= FileUtils.readFileToString(file, StandardCharsets.UTF_8);
189-
try (PrintWriter out = new PrintWriter(f.getAbsolutePath())) {
190-
out.println(contents);
191-
} catch (FileNotFoundException e) {
192-
// Auto-generated catch block
193-
e.printStackTrace();
194-
}
195-
}
196-
} catch (Exception e) {
197-
// Auto-generated catch block
198-
e.printStackTrace();
199-
}
200-
}
201182
}
202183
return f;
203184
}

0 commit comments

Comments
 (0)