diff options
author | Lars Vogel | 2021-02-03 10:42:15 +0000 |
---|---|---|
committer | Lars Vogel | 2021-02-04 14:58:47 +0000 |
commit | b48b0c0996d4f64db64eac329cf911d628df01eb (patch) | |
tree | 7bf399b72820932604d01015fbc49762e68ebcb3 | |
parent | 6515e3b8c1c3993ee40b6fe001e449c4e1d6cb19 (diff) | |
download | eclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.tar.gz eclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.tar.xz eclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.zip |
Removes unreachable code from RegistryUtilY20210205-1200I20210206-0050I20210205-1800I20210204-2320I20210204-1800I20210204-1430I20210204-1300I20210204-1100
The same condition is in line 41.
Found during testing of
https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/174008
Change-Id: I040e1943a25eccb7d575f23e8682b1d77b1e66a0
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2 files changed, 1 insertions, 8 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java index d6da2593..0fe570ad 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java @@ -77,9 +77,6 @@ public class WidgetContentProvider implements ITreeContentProvider { } else if (parentElement instanceof Tree) { // No children - } else if (parentElement instanceof Tree) { - // No children - } else if (parentElement instanceof List) { // No children diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java index f51bc055..aa924ce5 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java @@ -411,11 +411,7 @@ public class RegistryUtil { return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.views", "view", NAME); //$NON-NLS-1$ //$NON-NLS-2$ } else if (applicationElement == MHandler.class) { return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.handlers", "handler", COMMAND_ID); //$NON-NLS-1$ //$NON-NLS-2$ - } else if (applicationElement == MPart.class) { - return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.views", "view", NAME); //$NON-NLS-1$ //$NON-NLS-2$ - } - - else if (applicationElement == MPartDescriptor.class) { + } else if (applicationElement == MPartDescriptor.class) { if (hint == HINT_EDITOR) { return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.editors", EDITOR, NAME); //$NON-NLS-1$ |