From 5faa1c986661f7292bd2a344220ebb2fd5443cec Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 25 May 2015 14:41:11 +0200 Subject: [PATCH] Removed Preferences.init: no one used it --- app/src/processing/app/Preferences.java | 7 ------- app/test/processing/app/AbstractGUITest.java | 2 +- app/test/processing/app/AbstractWithPreferencesTest.java | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/src/processing/app/Preferences.java b/app/src/processing/app/Preferences.java index 6f76d6e4f..8dc00c137 100644 --- a/app/src/processing/app/Preferences.java +++ b/app/src/processing/app/Preferences.java @@ -84,13 +84,6 @@ public class Preferences { static final int GUI_SMALL = 6; - static protected void init(File file) { - PreferencesData.init(file); - - // other things that have to be set explicitly for the defaults - PreferencesHelper.putColor(PreferencesData.prefs, "run.window.bgcolor", SystemColor.control); - } - @Deprecated protected static void save() { PreferencesData.save(); diff --git a/app/test/processing/app/AbstractGUITest.java b/app/test/processing/app/AbstractGUITest.java index 85a82c1b0..446660090 100644 --- a/app/test/processing/app/AbstractGUITest.java +++ b/app/test/processing/app/AbstractGUITest.java @@ -51,7 +51,7 @@ public abstract class AbstractGUITest { FailOnThreadViolationRepaintManager.install(); BaseNoGui.initPlatform(); - Preferences.init(null); + PreferencesData.init(null); JPopupMenu.setDefaultLightWeightPopupEnabled(false); Theme.init(); BaseNoGui.getPlatform().setLookAndFeel(); diff --git a/app/test/processing/app/AbstractWithPreferencesTest.java b/app/test/processing/app/AbstractWithPreferencesTest.java index f19fd6af0..d53467302 100644 --- a/app/test/processing/app/AbstractWithPreferencesTest.java +++ b/app/test/processing/app/AbstractWithPreferencesTest.java @@ -39,7 +39,7 @@ public abstract class AbstractWithPreferencesTest { Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE)); BaseNoGui.initPlatform(); BaseNoGui.getPlatform().init(); - Preferences.init(null); + PreferencesData.init(null); Theme.init(); BaseNoGui.initPackages();