diff --git a/app/src/main/java/org/fdroid/fdroid/data/ContentValuesCursor.java b/app/src/main/java/org/fdroid/fdroid/data/ContentValuesCursor.java deleted file mode 100644 index 3c64c7957..000000000 --- a/app/src/main/java/org/fdroid/fdroid/data/ContentValuesCursor.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.fdroid.fdroid.data; - -import android.content.ContentValues; -import android.database.AbstractCursor; -import android.database.Cursor; -import android.os.Bundle; - -import java.util.Map; - -/** - * In order to keep {@link App#App(Cursor)} and {@link Apk#Apk(Cursor)} as - * efficient as possible, this wrapper class is used to instantiate {@code App} - * and {@code Apk} from {@link App#toContentValues()} and - * {@link Apk#toContentValues()} included as extras {@link Bundle}s in the - * {@link android.content.Intent} that starts - * {@link org.fdroid.fdroid.installer.InstallManagerService} - *
- * This implemented to throw an {@link IllegalArgumentException} if the types
- * do not match what they are expected to be so that things fail fast. So that
- * means only types used in {@link App#toContentValues()} and
- * {@link Apk#toContentValues()} are implemented.
- */
-class ContentValuesCursor extends AbstractCursor {
-
- private final String[] keys;
- private final Object[] values;
-
- ContentValuesCursor(ContentValues contentValues) {
- super();
- keys = new String[contentValues.size()];
- values = new Object[contentValues.size()];
- int i = 0;
- for (Map.Entry