From a958faf67348b6360f735e51b9b23c24976014cf Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 10 Jan 2018 15:30:27 +0000 Subject: [PATCH] JAL-2865 unhelpful System.gc() calls removed --- src/jalview/appletgui/OverviewCanvas.java | 1 - src/jalview/gui/AlignFrame.java | 1 - src/jalview/gui/Desktop.java | 3 --- src/jalview/gui/OverviewCanvas.java | 1 - 4 files changed, 6 deletions(-) diff --git a/src/jalview/appletgui/OverviewCanvas.java b/src/jalview/appletgui/OverviewCanvas.java index 9597b44..ecc90b8 100644 --- a/src/jalview/appletgui/OverviewCanvas.java +++ b/src/jalview/appletgui/OverviewCanvas.java @@ -132,7 +132,6 @@ public class OverviewCanvas extends Component od.getColumns(av.getAlignment())); mg.translate(0, -od.getSequencesHeight()); } - System.gc(); if (restart) { diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 298688b..c8de714 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -1826,7 +1826,6 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, @Override protected void copy_actionPerformed(ActionEvent e) { - System.gc(); if (viewport.getSelectionGroup() == null) { return; diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 128481c..569c105 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -899,8 +899,6 @@ public class Desktop extends jalview.jbgui.GDesktop menuItem.removeActionListener(menuItem.getActionListeners()[0]); } windowMenu.remove(menuItem); - - System.gc(); }; }); @@ -1388,7 +1386,6 @@ public class Desktop extends jalview.jbgui.GDesktop { ssm.resetAll(); } - System.gc(); } @Override diff --git a/src/jalview/gui/OverviewCanvas.java b/src/jalview/gui/OverviewCanvas.java index 2991889..34fbc97 100644 --- a/src/jalview/gui/OverviewCanvas.java +++ b/src/jalview/gui/OverviewCanvas.java @@ -161,7 +161,6 @@ public class OverviewCanvas extends JComponent od.getColumns(av.getAlignment())); mg.translate(0, -od.getSequencesHeight()); } - System.gc(); or.removePropertyChangeListener(progressPanel); or = null; -- 1.7.10.2