[yocto] [PATCH 4/8] plugins/sdk.ide: Remove fControl array that is no longer needed

mail at timomueller.eu mail at timomueller.eu
Tue Dec 4 01:22:19 PST 2012


From: Atanas Gegov <atanas.gegov at bmw-carit.de>

The setCurrentInput method replaces the functionality that was
provided by the fControl array.
---
 .../src/org/yocto/sdk/ide/YoctoUISetting.java      |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
index 53af8f0..0fbfde0 100644
--- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
+++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
@@ -43,7 +43,6 @@ import org.yocto.sdk.ide.preferences.PreferenceConstants;
 public class YoctoUISetting {
 
 	private static final String ENV_SCRIPT_FILE_PREFIX = "environment-setup-";
-	private ArrayList<Control> fControls;
 
 	private SelectionListener fSelectionListener;
 	private ModifyListener fModifyListener;
@@ -66,7 +65,6 @@ public class YoctoUISetting {
 
 	public YoctoUISetting(YoctoUIElement elem)
 	{
-		fControls = new ArrayList<Control>();
 		yoctoUIElement = elem;
 		elem.setStrTargetsArray(getTargetArray(elem));
 
@@ -88,11 +86,8 @@ public class YoctoUISetting {
 
 	private Control addControls(Control fControl, final String sKey, String sValue)
 	{
-
 		fControl.setData(new String[]{sKey,sValue});
-		fControls.add(fControl);
 		return fControl;
-
 	}
 
 	private Control addRadioButton(Composite parent, String label, String key, boolean bSelected) {
@@ -375,15 +370,6 @@ public class YoctoUISetting {
 		return pass;
 	}
 
-
-	public void setfControls(ArrayList<Control> fControls) {
-		this.fControls = fControls;
-	}
-
-	public ArrayList<Control> getfControls() {
-		return fControls;
-	}
-
 	private void updateQemuControlState()
 	{
 		boolean bQemuMode = btnQemu.getSelection();
-- 
1.7.7.6




More information about the yocto mailing list