Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp
index 34afcfcb67c83fdf7217cafd40e6ad830f3af4b2..2f6db6afe4d0b5e3e4fbba54b2ab2dc8f0f877f8 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableValue.cpp
@@ -30,26 +30,17 @@
#include "core/animation/animatable/AnimatableValue.h"
-#include "core/animation/animatable/AnimatableNeutral.h"
#include "wtf/StdLibExtras.h"
#include <algorithm>
namespace blink {
-PassRefPtr<AnimatableValue> AnimatableValue::neutralValue() {
- DEFINE_STATIC_REF(AnimatableNeutral, neutralSentinelValue,
- (AnimatableNeutral::create()));
- return neutralSentinelValue;
-}
-
PassRefPtr<AnimatableValue> AnimatableValue::interpolate(
const AnimatableValue* left,
const AnimatableValue* right,
double fraction) {
DCHECK(left);
DCHECK(right);
- DCHECK(!left->isNeutral());
- DCHECK(!right->isNeutral());
if (fraction && fraction != 1 && left->isSameType(right))
return left->interpolateTo(right, fraction);

Powered by Google App Engine
This is Rietveld 408576698