From 8f76080b15bda24bc7a08c76280fceafe5dd2785 Mon Sep 17 00:00:00 2001 From: xuzhiqiang Date: Tue, 14 Jan 2014 22:30:38 +0800 Subject: [PATCH] more useless code --- extensions/GUI/CCScrollView/CCScrollView.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index e3abf04087..39a17a160c 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -646,7 +646,7 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event) { if (_touches.size() == 1 && _dragging) { // scrolling - Point moveDistance, newPoint, maxInset, minInset; + Point moveDistance, newPoint; Rect frame; float newX, newY; @@ -696,9 +696,6 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event) default: break; } - - maxInset = _maxInset; - minInset = _minInset; newX = _container->getPosition().x + moveDistance.x; newY = _container->getPosition().y + moveDistance.y;