aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/src/com
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2010-11-18 14:44:09 -0800
committerRaphael Moll <ralf@android.com>2010-11-18 14:44:09 -0800
commit797aebac4aa55532cc42125e8f09e46e2b52879d (patch)
treef34520781754aa4fe7cdfcd7c387787ae605b382 /eclipse/plugins/com.android.ide.eclipse.adt/src/com
parent86524123e3cab4ae971d6fd4641d960db21f18d8 (diff)
downloadsdk-797aebac4aa55532cc42125e8f09e46e2b52879d.zip
sdk-797aebac4aa55532cc42125e8f09e46e2b52879d.tar.gz
sdk-797aebac4aa55532cc42125e8f09e46e2b52879d.tar.bz2
Cleanup GRE preload.
GRE used to preload the groovy BaseView rule to improve the first selection speed. We don't need that now that we switched to a non-groovy engine. Change-Id: Ib29272f28df6285137d62c45441cd9ac72efd10f
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com')
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java5
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/RulesEngine.java9
2 files changed, 0 insertions, 14 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java
index 0374fce..3cb51d9 100755
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java
@@ -462,11 +462,6 @@ class LayoutCanvas extends Canvas {
mHScale.setSize(image.getImageData().width, getClientArea().width);
mVScale.setSize(image.getImageData().height, getClientArea().height);
}
-
- // Pre-load the android.view.View rule in the Rules Engine. Doing it here means
- // it will be done after the first rendering is finished. Successive calls are
- // superfluous but harmless since the rule will be cached.
- mRulesEngine.preloadAndroidView();
}
redraw();
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/RulesEngine.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/RulesEngine.java
index 8de095d..7856cd9 100755
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/RulesEngine.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/RulesEngine.java
@@ -35,7 +35,6 @@ import com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData;
import com.android.ide.eclipse.adt.internal.sdk.ProjectState;
import com.android.ide.eclipse.adt.internal.sdk.Sdk;
import com.android.sdklib.IAndroidTarget;
-import com.android.sdklib.SdkConstants;
import com.android.sdklib.internal.project.ProjectProperties;
import org.eclipse.core.resources.IProject;
@@ -158,14 +157,6 @@ public class RulesEngine {
}
/**
- * Eventually all rules are going to try to load the base android.view.View rule.
- * Clients can request to preload it to make the first call faster.
- */
- public void preloadAndroidView() {
- loadRule(SdkConstants.CLASS_VIEW, SdkConstants.CLASS_VIEW);
- }
-
- /**
* Invokes {@link IViewRule#getDisplayName()} on the rule matching the specified element.
*
* @param element The view element to target. Can be null.