changeset 7958:b9eb9718108b

[SCENEBUILDER] Removed unused code from ObjectDeleter to fix BC_IMPOSSIBLE_INSTANCEOF from FindBugs.
author eric.le.ponner@oracle.com
date Wed, 03 Sep 2014 14:22:35 +0200
parents 6f74aae81004
children eb251121a360
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/reference/ObjectDeleter.java
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/reference/ObjectDeleter.java	Wed Sep 03 14:14:41 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/reference/ObjectDeleter.java	Wed Sep 03 14:22:35 2014 +0200
@@ -45,7 +45,6 @@
 import com.oracle.javafx.scenebuilder.kit.fxom.FXOMObject;
 import com.oracle.javafx.scenebuilder.kit.fxom.FXOMProperty;
 import com.oracle.javafx.scenebuilder.kit.fxom.FXOMPropertyC;
-import com.oracle.javafx.scenebuilder.kit.fxom.FXOMPropertyT;
 import java.util.LinkedList;
 import java.util.List;
 
@@ -159,13 +158,6 @@
                 }
             } else if (result instanceof FXOMIntrinsic) {
                 // No prework needed
-            } else if (result instanceof FXOMPropertyT) {
-                // No prework needed
-            } else if (result instanceof FXOMPropertyC) {
-                final FXOMPropertyC cp = (FXOMPropertyC) result;
-                for (FXOMObject value : new LinkedList<>(cp.getValues())) {
-                    prepareDeleteObject(value, target);
-                }
             }
         }