Remove unused class fields

This commit is contained in:
Daniel Martí 2015-10-23 13:01:10 +02:00
parent 1ad69adf4e
commit 97eea866aa
2 changed files with 1 additions and 5 deletions

View File

@ -34,7 +34,6 @@ public class HttpDownloader extends Downloader {
protected HttpURLConnection connection;
private InputStream stream;
private int statusCode = -1;
private boolean onlyStream;
HttpDownloader(Context context, URL url, File destFile)
throws FileNotFoundException, MalformedURLException {
@ -46,7 +45,6 @@ public class HttpDownloader extends Downloader {
* only stream the file through the {@link HttpDownloader#getInputStream()}
*/
public HttpDownloader streamDontDownload() {
onlyStream = true;
return this;
}

View File

@ -18,7 +18,6 @@ import org.fdroid.fdroid.data.App;
public abstract class AppListAdapter extends CursorAdapter {
private Context mContext;
private LayoutInflater mInflater;
private DisplayImageOptions displayImageOptions;
@ -43,8 +42,7 @@ public abstract class AppListAdapter extends CursorAdapter {
}
private void init(Context context) {
mContext = context;
mInflater = (LayoutInflater) mContext.getSystemService(
mInflater = (LayoutInflater) context.getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
displayImageOptions = Utils.getImageLoadingOptions().build();