Revert "added settings"

This reverts commit c8dabd9c7b.
This commit is contained in:
potzplitz 2024-03-15 22:42:51 +01:00
parent e493d46626
commit 4c6605c037
2 changed files with 0 additions and 45 deletions

View file

@ -1,22 +1,5 @@
package gui;
import java.awt.Button;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import settingsfunctions.DeleteDatabase;
public class SettingsGui {
public void showSettings() {
JFrame settings = new JFrame("Einstellungen");
settings.setLayout(null);
settings.setResizable(false);
settings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
settings.setSize(500, 500);
settings.setVisible(true);
}
}

View file

@ -1,28 +0,0 @@
package settingsfunctions;
import java.io.File;
public class DeleteDatabase {
private void deleter(String database) {
File filelength = new File("C:\\ExtremeDemonList\\" + database);
File[] filelengthindex = filelength.listFiles();
for(File file : filelengthindex) {
file.delete();
}
}
public void deleteCompleted() {
deleter("completed");
}
public void deleteUncompleted() {
deleter("levels");
}
public void deleteAll() {
deleteCompleted();
deleteUncompleted();
}
}