Merge pull request #7466 from andyque/fixPageView

remove unused functions
This commit is contained in:
minggo 2014-07-17 09:59:46 +08:00
commit a192ddfebd
2 changed files with 1 additions and 10 deletions

View File

@ -336,10 +336,6 @@ void PageView::autoScroll(float dt)
bool PageView::onTouchBegan(Touch *touch, Event *unusedEvent)
{
bool pass = Layout::onTouchBegan(touch, unusedEvent);
if (_hitted)
{
handlePressLogic(touch);
}
return pass;
}
@ -433,10 +429,6 @@ bool PageView::scrollPages(float touchOffset)
return true;
}
void PageView::handlePressLogic(Touch *touch)
{
//no-op
}
void PageView::handleMoveLogic(Touch *touch)
{
@ -507,7 +499,7 @@ void PageView::interceptTouchEvent(TouchEventType event, Widget *sender, Touch *
switch (event)
{
case TouchEventType::BEGAN:
handlePressLogic(touch);
//no-op
break;
case TouchEventType::MOVED:
{

View File

@ -185,7 +185,6 @@ protected:
void updateAllPagesPosition();
void autoScroll(float dt);
virtual void handlePressLogic(Touch *touch);
virtual void handleMoveLogic(Touch *touch) ;
virtual void handleReleaseLogic(Touch *touch) ;
virtual void interceptTouchEvent(TouchEventType event, Widget* sender,Touch *touch) ;