Skip to content

Commit

Permalink
Remove some deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Banes committed Dec 13, 2012
1 parent 0280dfb commit a372b80
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ public final State getState() {
return mState;
}

/**
* @return true if the current mode is Mode.PULL_FROM_START
* @deprecated Use the value from <code>getCurrentMode()</code> instead
*/
public final boolean hasPullFromTop() {
return mCurrentMode == Mode.PULL_FROM_START;
}

/**
* @deprecated See {@link #isScrollingWhileRefreshingEnabled()}.
*/
Expand Down Expand Up @@ -608,9 +600,6 @@ void onRefreshing(final boolean doScroll) {
smoothScrollTo(0);
}
}

// Call the deprecated method
setRefreshingInternal(doScroll);
}

/**
Expand Down Expand Up @@ -644,9 +633,6 @@ void onReset() {
mFooterLayout.reset();

smoothScrollTo(0);

// Call the deprecated method
resetHeader();
}

/**
Expand Down Expand Up @@ -923,17 +909,6 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
refreshLoadingViewsSize();
}

/**
* @deprecated This is a deprecated callback. If you're overriding this
* method then use
* {@link #setOnPullEventListener(OnPullEventListener)
* setOnPullEventListener()} instead to be notified when the
* state changes to {@link State#RESET RESET}. This deprecated
* method will be removed in the future.
*/
protected void resetHeader() {
}

/**
* Helper method which just calls scrollTo() in the correct scrolling
* direction.
Expand Down Expand Up @@ -962,18 +937,6 @@ protected final void setHeaderScroll(final int value) {
}
}

/**
* @deprecated This is a deprecated callback. If you're overriding this
* method then use
* {@link #setOnPullEventListener(OnPullEventListener)
* setOnPullEventListener()} instead to be notified when the
* state changes to {@link State#REFRESHING REFRESHING} or
* {@link State#MANUAL_REFRESHING MANUAL_REFRESHING}. This
* deprecated method will be removed in the future.
*/
protected void setRefreshingInternal(final boolean doScroll) {
}

/**
* Smooth Scroll to position using the default duration of
* {@value #SMOOTH_SCROLL_DURATION_MS} ms.
Expand Down

0 comments on commit a372b80

Please sign in to comment.