Remove unused resources, make methods static

This commit is contained in:
Anthony Restaino 2015-09-16 21:52:11 -04:00
parent 05efb4eb72
commit 4f839e0866
3 changed files with 2 additions and 3 deletions

View File

@ -96,7 +96,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
delete.start();
}
private void deleteOldCacheFiles() {
private static void deleteOldCacheFiles() {
File dir = new File(BrowserApp.getAppContext().getCacheDir().toString());
String[] fileList = dir.list(new NameFilter());
long earliestTimeAllowed = System.currentTimeMillis() - INTERVAL_DAY;

View File

@ -968,7 +968,7 @@ public class ArticleTextExtractor {
return weight;
}
private Element determineImageSource(Element el, List<ImageResult> images) {
private static Element determineImageSource(Element el, List<ImageResult> images) {
int maxWeight = 0;
Element maxNode = null;
Elements els = el.select("img");

View File

@ -3,6 +3,5 @@
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="navigation_width">260dp</dimen>
<dimen name="search_bar_height">48dp</dimen>
<dimen name="abc_action_button_min_width_overflow_material">48dp</dimen>
</resources>