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

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

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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
« no previous file with comments | « Source/core/animation/animatable/AnimatableValue.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/animatable/AnimatableValue.cpp
diff --git a/Source/core/animation/animatable/AnimatableValue.cpp b/Source/core/animation/animatable/AnimatableValue.cpp
index 85ab07e267e0087cedd261e9abbe8489a8955add..5a7666886a34caf128b3d6d16321d4435d1e486b 100644
--- a/Source/core/animation/animatable/AnimatableValue.cpp
+++ b/Source/core/animation/animatable/AnimatableValue.cpp
@@ -35,12 +35,6 @@
#include "wtf/StdLibExtras.h"
#include <algorithm>
-namespace {
-
-const double defaultDistance = 1;
-
-} // namespace
-
namespace blink {
const AnimatableValue* AnimatableValue::neutralValue()
@@ -62,20 +56,4 @@ PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableValue::interpolate(const Anima
return defaultInterpolateTo(left, right, fraction);
}
-double AnimatableValue::distance(const AnimatableValue* left, const AnimatableValue* right)
-{
- ASSERT(left);
- ASSERT(right);
-
- if (left->isSameType(right))
- return left->distanceTo(right);
-
- return defaultDistance;
-}
-
-double AnimatableValue::distanceTo(const AnimatableValue*) const
-{
- return defaultDistance;
-}
-
} // namespace blink
« no previous file with comments | « Source/core/animation/animatable/AnimatableValue.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698