diff --git a/tools/idea/plugin/src/main/java/org/teavm/idea/TeaVMDaemonComponent.java b/tools/idea/plugin/src/main/java/org/teavm/idea/TeaVMDaemonComponent.java index 3ec57cc1c..2e1def345 100644 --- a/tools/idea/plugin/src/main/java/org/teavm/idea/TeaVMDaemonComponent.java +++ b/tools/idea/plugin/src/main/java/org/teavm/idea/TeaVMDaemonComponent.java @@ -68,7 +68,7 @@ public class TeaVMDaemonComponent implements ApplicationComponent { } catch (IOException e) { throw new RuntimeException(e); } - updateConfiguration(true, daemonMemory); + updateConfiguration(true); } } @@ -76,7 +76,7 @@ public class TeaVMDaemonComponent implements ApplicationComponent { if (daemonInfo != null) { daemonInfo.getProcess().destroy(); daemonInfo = null; - updateConfiguration(false, daemonMemory); + updateConfiguration(false); } } @@ -104,11 +104,10 @@ public class TeaVMDaemonComponent implements ApplicationComponent { configurationStorage.loadState(configuration); } - private void updateConfiguration(boolean daemonEnabled, int daemonMemory) { + private void updateConfiguration(boolean daemonEnabled) { TeaVMWorkspaceConfigurationStorage configurationStorage = getConfigurationStorage(); TeaVMJpsWorkspaceConfiguration configuration = configurationStorage.getState(); configuration.setDaemonEnabled(daemonEnabled); - configuration.setDaemonMemory(daemonMemory); configurationStorage.loadState(configuration); }