Remove unused class fields
This commit is contained in:
parent
1ad69adf4e
commit
97eea866aa
@ -34,7 +34,6 @@ public class HttpDownloader extends Downloader {
|
|||||||
protected HttpURLConnection connection;
|
protected HttpURLConnection connection;
|
||||||
private InputStream stream;
|
private InputStream stream;
|
||||||
private int statusCode = -1;
|
private int statusCode = -1;
|
||||||
private boolean onlyStream;
|
|
||||||
|
|
||||||
HttpDownloader(Context context, URL url, File destFile)
|
HttpDownloader(Context context, URL url, File destFile)
|
||||||
throws FileNotFoundException, MalformedURLException {
|
throws FileNotFoundException, MalformedURLException {
|
||||||
@ -46,7 +45,6 @@ public class HttpDownloader extends Downloader {
|
|||||||
* only stream the file through the {@link HttpDownloader#getInputStream()}
|
* only stream the file through the {@link HttpDownloader#getInputStream()}
|
||||||
*/
|
*/
|
||||||
public HttpDownloader streamDontDownload() {
|
public HttpDownloader streamDontDownload() {
|
||||||
onlyStream = true;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ import org.fdroid.fdroid.data.App;
|
|||||||
|
|
||||||
public abstract class AppListAdapter extends CursorAdapter {
|
public abstract class AppListAdapter extends CursorAdapter {
|
||||||
|
|
||||||
private Context mContext;
|
|
||||||
private LayoutInflater mInflater;
|
private LayoutInflater mInflater;
|
||||||
private DisplayImageOptions displayImageOptions;
|
private DisplayImageOptions displayImageOptions;
|
||||||
|
|
||||||
@ -43,8 +42,7 @@ public abstract class AppListAdapter extends CursorAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void init(Context context) {
|
private void init(Context context) {
|
||||||
mContext = context;
|
mInflater = (LayoutInflater) context.getSystemService(
|
||||||
mInflater = (LayoutInflater) mContext.getSystemService(
|
|
||||||
Context.LAYOUT_INFLATER_SERVICE);
|
Context.LAYOUT_INFLATER_SERVICE);
|
||||||
displayImageOptions = Utils.getImageLoadingOptions().build();
|
displayImageOptions = Utils.getImageLoadingOptions().build();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user