ANIMATOR : Remove unused source code 82/20582/1
authorseongwon.shim <seongwon.shim@samsung.com>
Fri, 9 May 2014 10:29:17 +0000 (19:29 +0900)
committerseongwon.shim <seongwon.shim@samsung.com>
Fri, 9 May 2014 10:29:17 +0000 (19:29 +0900)
Remove decrease id call and id related source code from AnimatorModelManager

Change-Id: I5f9a1d11911cc25903e66064f17025301255f605
Signed-off-by: seongwon.shim <seongwon.shim@samsung.com>
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/model/AnimatorModelManager.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/command/TimelineAnimationGroupCreateCommand.java

index f14b2f8..2c76816 100644 (file)
@@ -23,7 +23,6 @@
 
 package org.tizen.webuibuilder.animator.model;
 
-import java.util.ArrayList;
 import java.util.List;
 
 import org.eclipse.jface.viewers.ISelection;
@@ -144,7 +143,7 @@ public class AnimatorModelManager implements ISelectionListener, IPageDataSetLis
        /******************************************************************************************************************
      * Animator Model ID Control - Start
      ******************************************************************************************************************/
-    private void initMaxIds(Part rootPart) {
+    /*private void initMaxIds(Part rootPart) {
         List<AnimatorAnimation> animations = new ArrayList<AnimatorAnimation>();
         List<AnimatorTrigger> triggers = new ArrayList<AnimatorTrigger>();
 
@@ -166,7 +165,7 @@ public class AnimatorModelManager implements ISelectionListener, IPageDataSetLis
         }
 
         this.idGenerator.initializeIdGeneratorWithAnimation(animations, triggers);
-    }
+    }*/
 
     /******************************************************************************************************************
      * public method for id generation
@@ -177,7 +176,7 @@ public class AnimatorModelManager implements ISelectionListener, IPageDataSetLis
      * @param modelType
      * @return
      */
-    public String idGenerator(AnimatorModelType modelType) {
+    /*public String idGenerator(AnimatorModelType modelType) {
         String generatedId = null;
 
         if (modelType == AnimatorModelType.ANIMATION) {
@@ -195,14 +194,14 @@ public class AnimatorModelManager implements ISelectionListener, IPageDataSetLis
         }
 
         return generatedId;
-    }
+    }*/
 
     /**
      * Decrease id
      * 
      * @param modelType
      */
-    public void decreaseId(AnimatorModelType modelType) {
+    /*public void decreaseId(AnimatorModelType modelType) {
         if (modelType == AnimatorModelType.ANIMATION) {
             idGenerator.decreaseAnimationId();
         } else if (modelType == AnimatorModelType.SELECTOR) {
@@ -216,7 +215,7 @@ public class AnimatorModelManager implements ISelectionListener, IPageDataSetLis
                 || modelType == AnimatorModelType.ACTION_VIDEO) {
             idGenerator.decreaseActionId();
         }
-    }
+    }*/
 
        /******************************************************************************************************************
      * Model Event Propagation
index 1457a56..6b6103d 100644 (file)
@@ -26,8 +26,6 @@ package org.tizen.webuibuilder.animator.ui.views.timeline.command;
 import org.eclipse.gef.commands.Command;
 import org.tizen.webuibuilder.animator.model.AnimatorAnimation;
 import org.tizen.webuibuilder.animator.model.AnimatorModelEvent.Origin;
-import org.tizen.webuibuilder.animator.model.AnimatorModelManager;
-import org.tizen.webuibuilder.animator.model.AnimatorModelType;
 import org.tizen.webuibuilder.animator.model.part.AnimatorPagePart;
 import org.tizen.webuibuilder.animator.ui.views.timeline.header.AnimationGroupDialogResult;
 import org.tizen.webuibuilder.animator.utils.AnimatorUtils;
@@ -96,10 +94,8 @@ public class TimelineAnimationGroupCreateCommand extends Command {
      */
     @Override
     public void undo() {
-        AnimatorModelManager manager = AnimatorUtils.getAppManager().getAnimatorModelManager();
         AnimatorUtils.getActiveAnimatorBrowserViewer()
                 .setCurrentAnimationGroupId(currentAnimationGroupId, true);
-        manager.decreaseId(AnimatorModelType.ANIMATION);
         pagePart.removeAnimatoin(animation, Origin.TIMELINE);
     }
 }