more useless code

This commit is contained in:
xuzhiqiang 2014-01-14 22:30:38 +08:00
parent f59c969216
commit 8f76080b15
1 changed files with 1 additions and 4 deletions

View File

@ -646,7 +646,7 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event)
{ {
if (_touches.size() == 1 && _dragging) if (_touches.size() == 1 && _dragging)
{ // scrolling { // scrolling
Point moveDistance, newPoint, maxInset, minInset; Point moveDistance, newPoint;
Rect frame; Rect frame;
float newX, newY; float newX, newY;
@ -697,9 +697,6 @@ void ScrollView::onTouchMoved(Touch* touch, Event* event)
break; break;
} }
maxInset = _maxInset;
minInset = _minInset;
newX = _container->getPosition().x + moveDistance.x; newX = _container->getPosition().x + moveDistance.x;
newY = _container->getPosition().y + moveDistance.y; newY = _container->getPosition().y + moveDistance.y;