Remove outdated doc comment and simplify method.

This commit is contained in:
Peter Serwylo 2016-11-10 12:22:37 +11:00
parent 6f0b33a092
commit f060efb7ba

View File

@ -170,14 +170,8 @@ public class AppProvider extends FDroidProvider {
return app; return app;
} }
/*
* I wasn't quite sure on the best way to execute arbitrary queries using the same DBHelper as the
* content provider class, so I've hidden the implementation of this (by making it private) in case
* I find a better way in the future.
*/
public static void calcDetailsFromIndex(Context context) { public static void calcDetailsFromIndex(Context context) {
final Uri fromUpstream = calcAppDetailsFromIndexUri(); context.getContentResolver().update(calcAppDetailsFromIndexUri(), null, null, null);
context.getContentResolver().update(fromUpstream, null, null, null);
} }
public static List<App> findCanUpdate(Context context, String[] projection) { public static List<App> findCanUpdate(Context context, String[] projection) {