remove all unused variables
This reduces the number of warnings so that we can see the useful ones!
This commit is contained in:
parent
5d828e2341
commit
3a0d40d86d
@ -49,7 +49,6 @@ import com.nostra13.universalimageloader.utils.StorageUtils;
|
||||
|
||||
import de.duenndns.ssl.MemorizingTrustManager;
|
||||
|
||||
import org.fdroid.fdroid.data.App;
|
||||
import org.fdroid.fdroid.data.AppProvider;
|
||||
import org.thoughtcrime.ssl.pinning.PinningTrustManager;
|
||||
import org.thoughtcrime.ssl.pinning.SystemKeyStore;
|
||||
@ -124,7 +123,6 @@ public class FDroidApp extends Application {
|
||||
}
|
||||
}
|
||||
|
||||
apps = null;
|
||||
invalidApps = new ArrayList<String>();
|
||||
ctx = getApplicationContext();
|
||||
UpdateService.schedule(ctx);
|
||||
@ -187,12 +185,8 @@ public class FDroidApp extends Application {
|
||||
|
||||
private Context ctx;
|
||||
|
||||
// Global list of all known applications.
|
||||
private List<App> apps;
|
||||
|
||||
// Set when something has changed (database or installed apps) so we know
|
||||
// we should invalidate the apps.
|
||||
private volatile boolean appsAllInvalid = false;
|
||||
private Semaphore appsInvalidLock = new Semaphore(1, false);
|
||||
private List<String> invalidApps;
|
||||
|
||||
@ -201,7 +195,6 @@ public class FDroidApp extends Application {
|
||||
public void invalidateAllApps() {
|
||||
try {
|
||||
appsInvalidLock.acquire();
|
||||
appsAllInvalid = true;
|
||||
} catch (InterruptedException e) {
|
||||
// Don't care
|
||||
} finally {
|
||||
|
@ -247,7 +247,6 @@ public class UpdateService extends IntentService implements ProgressListener {
|
||||
|
||||
// Grab some preliminary information, then we can release the
|
||||
// database while we do all the downloading, etc...
|
||||
int updates = 0;
|
||||
List<Repo> repos = RepoProvider.Helper.all(this);
|
||||
|
||||
// Process each repo...
|
||||
|
@ -442,7 +442,7 @@ public class ApkProvider extends FDroidProvider {
|
||||
public Uri insert(Uri uri, ContentValues values) {
|
||||
removeRepoFields(values);
|
||||
validateFields(DataColumns.ALL, values);
|
||||
long id = write().insertOrThrow(getTableName(), null, values);
|
||||
write().insertOrThrow(getTableName(), null, values);
|
||||
if (!isApplyingBatch()) {
|
||||
getContext().getContentResolver().notifyChange(uri, null);
|
||||
}
|
||||
|
@ -458,7 +458,7 @@ public class AppProvider extends FDroidProvider {
|
||||
|
||||
@Override
|
||||
public Uri insert(Uri uri, ContentValues values) {
|
||||
long id = write().insertOrThrow(getTableName(), null, values);
|
||||
write().insertOrThrow(getTableName(), null, values);
|
||||
if (!isApplyingBatch()) {
|
||||
getContext().getContentResolver().notifyChange(uri, null);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user