remove cruft

This commit is contained in:
dosiecki 2017-05-31 03:07:28 -07:00
parent 3f725ce406
commit 3c3e41852d
5 changed files with 0 additions and 58 deletions

View file

@ -254,32 +254,6 @@ public class BlurDatabaseHelper {
}
}
public void setStarredCounts(List<ContentValues> values) {
synchronized (RW_MUTEX) {
dbRW.beginTransaction();
try {
dbRW.delete(DatabaseConstants.STARREDCOUNTS_TABLE, null, null);
bulkInsertValuesExtSync(DatabaseConstants.STARREDCOUNTS_TABLE, values);
dbRW.setTransactionSuccessful();
} finally {
dbRW.endTransaction();
}
}
}
public List<String> getStoryHashesForFeed(String feedId) {
String q = "SELECT " + DatabaseConstants.STORY_HASH +
" FROM " + DatabaseConstants.STORY_TABLE +
" WHERE " + DatabaseConstants.STORY_FEED_ID + " = ?";
Cursor c = dbRO.rawQuery(q, new String[]{feedId});
List<String> hashes = new ArrayList<String>(c.getCount());
while (c.moveToNext()) {
hashes.add(c.getString(c.getColumnIndexOrThrow(DatabaseConstants.STORY_HASH)));
}
c.close();
return hashes;
}
// note method name: this gets a set rather than a list, in case the caller wants to
// spend the up-front cost of hashing for better lookup speed rather than iteration!
public Set<String> getUnreadStoryHashesAsSet() {

View file

@ -760,16 +760,6 @@ public class FolderListAdapter extends BaseExpandableListAdapter {
}
}
private int sumIntRows(Cursor c, int columnIndex) {
if (c == null) return 0;
int i = 0;
c.moveToPosition(-1);
while (c.moveToNext()) {
i += c.getInt(columnIndex);
}
return i;
}
/**
* Utility method to filter out and carp about negative unread counts. These tend to indicate
* a problem in the app or API, but are very confusing to users.

View file

@ -185,10 +185,6 @@ public abstract class ProfileActivityDetailsFragment extends Fragment implements
public EndlessScrollListener() {
}
public EndlessScrollListener(int visibleThreshold) {
this.visibleThreshold = visibleThreshold;
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {

View file

@ -60,20 +60,6 @@ public class FeedUtils {
dbHelper.dropAndRecreateTables();
}
public static void clearStorySession() {
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... arg) {
try {
dbHelper.clearStorySession();
} catch (Exception e) {
; // this is a UI hinting call and might fail if the DB is being reset, but that is fine
}
return null;
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
public static void prepareReadingSession(final FeedSet fs) {
new AsyncTask<Void, Void, Void>() {
@Override

View file

@ -14,8 +14,4 @@ public enum VolumeKeyNavigation {
VolumeKeyNavigation(String parameterValue) {
this.parameterValue = parameterValue;
}
public String getParameterValue() {
return parameterValue;
}
}