Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Horta committed Feb 20, 2024
1 parent 7f069f6 commit cfd0d99
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1948,8 +1948,9 @@ private void showBookmarksSavedLocallyDialog(ShowBookmarkedSavedOnlyLocallyDialo
private final ReaderInterfaces.DataLoadedListener mDataLoadedListener = new ReaderInterfaces.DataLoadedListener() {
@Override
public void onDataLoaded(boolean isEmpty) {
if (!isAdded() || !mHasUpdatedPosts) return;

if (!isAdded() || !mHasUpdatedPosts) {
return;
}
if (isEmpty) {
if (getPostListType() != ReaderPostListType.SEARCH_RESULTS
|| getSearchTabsPosition() == TAB_SITES && getSiteSearchAdapter().isEmpty()
Expand All @@ -1974,21 +1975,6 @@ public void onDataLoaded(boolean isEmpty) {
}
};

// private void fetchInitialData() {
// if (getPostListType() == ReaderPostListType.TAG_FOLLOWED) {
// reloadTags();
//
// // update the current tag if the list fragment is empty - this will happen if
// // the tag table was previously empty (ie: first run)
// if (isPostAdapterEmpty()) {
// updateCurrentTag();
// }
// }
//
// if (mReaderViewModel != null) mReaderViewModel.loadTabs();
// if (mSubFilterViewModel != null) mSubFilterViewModel.loadSubFilters();
// }

private boolean isBookmarksList() {
return getPostListType() == ReaderPostListType.TAG_FOLLOWED
&& (mCurrentTag != null && mCurrentTag.isBookmarked());
Expand Down

0 comments on commit cfd0d99

Please sign in to comment.