Remove a unused variable.
authorthakis@chromium.org <thakis@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 23:40:36 +0000 (23:40 +0000)
committerthakis@chromium.org <thakis@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 23:40:36 +0000 (23:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=76307

Reviewed by James Robinson.

* platform/mac/ScrollElasticityController.mm:
(WebCore::ScrollElasticityController::snapRubberBandTimerFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105003 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mac/ScrollElasticityController.mm

index d64c7da6abbf93e1e64d99bcfc40ca3fb78b6fb6..f2d7b2248b7e739515622543deaaaf3290cc6073 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-13  Nico Weber  <thakis@chromium.org>
+
+        Remove a unused variable.
+        https://bugs.webkit.org/show_bug.cgi?id=76307
+
+        Reviewed by James Robinson.
+
+        * platform/mac/ScrollElasticityController.mm:
+        (WebCore::ScrollElasticityController::snapRubberBandTimerFired):
+
 2012-01-13  Nate Chapin  <japhet@chromium.org>
 
         Revert most of the multipart changes in
index 88cda005e67cc415f13e7c7a75769ac43edc7e7a..db731af2cfa5754916d8d02108ede869659ab804 100644 (file)
@@ -340,8 +340,6 @@ void ScrollElasticityController::snapRubberBandTimerFired()
                          roundToDevicePixelTowardZero(elasticDeltaForTimeDelta(m_startStretch.height(), -m_origVelocity.height(), (float)timeDelta)));
 
         if (fabs(delta.x()) >= 1 || fabs(delta.y()) >= 1) {
-            FloatPoint newOrigin = m_origOrigin + delta;
-
             m_client->immediateScrollByWithoutContentEdgeConstraints(FloatSize(delta.x(), delta.y()) - m_client->stretchAmount());
 
             FloatSize newStretch = m_client->stretchAmount();