Skip to content

Commit cfd0d99

Browse files
author
Thomas Horta
committed
Remove unused code
1 parent 7f069f6 commit cfd0d99

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,8 +1948,9 @@ private void showBookmarksSavedLocallyDialog(ShowBookmarkedSavedOnlyLocallyDialo
19481948
private final ReaderInterfaces.DataLoadedListener mDataLoadedListener = new ReaderInterfaces.DataLoadedListener() {
19491949
@Override
19501950
public void onDataLoaded(boolean isEmpty) {
1951-
if (!isAdded() || !mHasUpdatedPosts) return;
1952-
1951+
if (!isAdded() || !mHasUpdatedPosts) {
1952+
return;
1953+
}
19531954
if (isEmpty) {
19541955
if (getPostListType() != ReaderPostListType.SEARCH_RESULTS
19551956
|| getSearchTabsPosition() == TAB_SITES && getSiteSearchAdapter().isEmpty()
@@ -1974,21 +1975,6 @@ public void onDataLoaded(boolean isEmpty) {
19741975
}
19751976
};
19761977

1977-
// private void fetchInitialData() {
1978-
// if (getPostListType() == ReaderPostListType.TAG_FOLLOWED) {
1979-
// reloadTags();
1980-
//
1981-
// // update the current tag if the list fragment is empty - this will happen if
1982-
// // the tag table was previously empty (ie: first run)
1983-
// if (isPostAdapterEmpty()) {
1984-
// updateCurrentTag();
1985-
// }
1986-
// }
1987-
//
1988-
// if (mReaderViewModel != null) mReaderViewModel.loadTabs();
1989-
// if (mSubFilterViewModel != null) mSubFilterViewModel.loadSubFilters();
1990-
// }
1991-
19921978
private boolean isBookmarksList() {
19931979
return getPostListType() == ReaderPostListType.TAG_FOLLOWED
19941980
&& (mCurrentTag != null && mCurrentTag.isBookmarked());

0 commit comments

Comments
 (0)