Bug 1255374 - Remove unused class BounceAnimatorBuilder. r=sebastian
authorDinesh Polathula <dpdineshp2@gmail.com>
Mon, 14 Mar 2016 14:49:06 +0100
changeset 288522 8073490f8fb651c050cde086e1c79cd824610de2
parent 288521 5fa79c7ea7ae43359998dfed5fc1109b7ccc758b
child 288523 89bb123e0697907b1658809032245bc422253df0
push id30083
push userkwierso@gmail.com
push dateTue, 15 Mar 2016 00:32:08 +0000
treeherdermozilla-central@21077a8abccf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1255374
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1255374 - Remove unused class BounceAnimatorBuilder. r=sebastian MozReview-Commit-ID: 6lRFeBGfNVS
mobile/android/base/java/org/mozilla/gecko/animation/BounceAnimatorBuilder.java
mobile/android/base/moz.build
deleted file mode 100644
--- a/mobile/android/base/java/org/mozilla/gecko/animation/BounceAnimatorBuilder.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.mozilla.gecko.animation;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import android.view.View;
-import android.view.animation.AccelerateInterpolator;
-
-import com.nineoldandroids.animation.Animator;
-import com.nineoldandroids.animation.AnimatorSet;
-import com.nineoldandroids.animation.ObjectAnimator;
-import com.nineoldandroids.animation.ValueAnimator;
-
-/**
- * This is an Animator that chains AccelerateInterpolators. It can be used to create a customized
- * Bounce animation.
- *
- * After constructing an instance, animations can be queued up sequentially with the
- * {@link #queue(Attributes) queue} method.
- */
-public class BounceAnimatorBuilder extends ValueAnimator {
-
-    public static final class Attributes {
-        public final float value;
-        public final int durationMs;
-
-        public Attributes(float value, int duration) {
-            this.value = value;
-            this.durationMs = duration;
-        }
-    }
-
-    private final View mView;
-    private final String mPropertyName;
-    private final List<Animator> animatorChain = new LinkedList<Animator>();
-
-    public BounceAnimatorBuilder(View view, String property) {
-        mView = view;
-        mPropertyName = property;
-    }
-
-    public void queue(Attributes attrs) {
-        final ValueAnimator animator = ObjectAnimator.ofFloat(mView, mPropertyName, attrs.value);
-        animator.setDuration(attrs.durationMs);
-        animator.setInterpolator(new AccelerateInterpolator());
-        animatorChain.add(animator);
-    }
-
-    public AnimatorSet build(){
-        AnimatorSet animatorSet = new AnimatorSet();
-        animatorSet.playSequentially(animatorChain);
-        return animatorSet;
-    }
-}
--- a/mobile/android/base/moz.build
+++ b/mobile/android/base/moz.build
@@ -190,17 +190,16 @@ gbjar.sources += ['java/org/mozilla/geck
     'AccountsHelper.java',
     'ActionModeCompat.java',
     'ActionModeCompatView.java',
     'ActivityHandlerHelper.java',
     'AlarmReceiver.java',
     'AndroidGamepadManager.java',
     'animation/AnimationUtils.java',
     'animation/AnimatorProxy.java',
-    'animation/BounceAnimatorBuilder.java',
     'animation/HeightChangeAnimation.java',
     'animation/PropertyAnimator.java',
     'animation/Rotate3DAnimation.java',
     'animation/TransitionsTracker.java',
     'animation/ViewHelper.java',
     'ANRReporter.java',
     'AppNotificationClient.java',
     'BaseGeckoInterface.java',