diff options
author | Alexander Kurtakov | 2019-12-11 09:09:23 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-12-11 09:09:32 +0000 |
commit | efd9f03b5520cce1b3fba361a6a56367dd08ecb6 (patch) | |
tree | 651cdc5bdb08e4045b6f70cac7c9e2b3092216e3 | |
parent | 21f09a48d685553bbb46c3e447e7e8bd36f43ed4 (diff) | |
download | eclipse.platform.ua-efd9f03b5520cce1b3fba361a6a56367dd08ecb6.tar.gz eclipse.platform.ua-efd9f03b5520cce1b3fba361a6a56367dd08ecb6.tar.xz eclipse.platform.ua-efd9f03b5520cce1b3fba361a6a56367dd08ecb6.zip |
Bug 446171 - [Intro] Remove usage of isPlain() method in IntroLaunchBar
Remove yet another unnecessary method.
Change-Id: I95a103e91d74abef71830c9e988159b571f9cc39
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java index caf3f44ac..f8e6c1aee 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java @@ -360,27 +360,6 @@ public class IntroLaunchBar { gc.drawRectangle(0, 0, size.x - 1, size.y - 1); } - - - - - private int fillShape(int[] shape, int[] points, int index, int x, int y, boolean reverse) { - int fill = points.length; - for (int i = 0; i < points.length / 2; i++) { - if (!reverse) { - shape[index++] = x + points[2 * i]; - shape[index++] = y + points[2 * i + 1]; - } else { - shape[index + fill - 2 - 2 * i] = x + points[2 * i]; - shape[index + fill - 1 - 2 * i] = y + points[2 * i + 1]; - } - } - if (reverse) { - index += fill; - } - return index; - } - private void computeColors(Display display) { if (element.getBackground() != null) { String value = resolveColor(element.getBackground()); |