Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary bookmarks DB code (#1870)
Browse files Browse the repository at this point in the history
We are already using AC for bookmarks so this code along with the migration code shouldn't be necessary anymore and should be safe to remove.
  • Loading branch information
keianhzo authored and bluemarvin committed Sep 26, 2019
1 parent b1ccb24 commit 5e4d0fc
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 460 deletions.
9 changes: 0 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ android {
arguments "-DANDROID_STL=c++_shared"
}
}

javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}

if (gradle.hasProperty('userProperties.taskclusterBuild')) {
Expand Down Expand Up @@ -418,8 +412,6 @@ dependencies {

// Common
// implementation deps.google_vr.sdk_audio
implementation deps.room.runtime
annotationProcessor deps.room.compiler
implementation deps.lifecycle.runtime
implementation deps.lifecycle.extensions
implementation deps.support.cardview
Expand Down Expand Up @@ -453,7 +445,6 @@ dependencies {
testImplementation deps.junit
androidTestImplementation deps.atsl.runner
androidTestImplementation deps.espresso.core
testImplementation deps.room.testing

// Daydream
googlevrImplementation deps.google_vr.sdk_base
Expand Down
61 changes: 0 additions & 61 deletions app/schemas/org.mozilla.vrbrowser.db.AppDatabase/1.json

This file was deleted.

61 changes: 0 additions & 61 deletions app/schemas/org.mozilla.vrbrowser.db.BookmarkDatabase/1.json

This file was deleted.

89 changes: 0 additions & 89 deletions app/src/common/shared/org/mozilla/vrbrowser/DataRepository.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ protected void onCreate(Bundle savedInstanceState) {
Bundle extras = getIntent() != null ? getIntent().getExtras() : null;
SessionStore.get().setContext(this, extras);
SessionStore.get().initializeStores(this);
((VRBrowserApplication)getApplication()).getRepository().migrateOldBookmarks();

// Create broadcast receiver for getting crash messages from crash process
IntentFilter intentFilter = new IntentFilter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.content.res.Configuration;

import org.mozilla.vrbrowser.browser.Places;
import org.mozilla.vrbrowser.db.AppDatabase;
import org.mozilla.vrbrowser.telemetry.TelemetryWrapper;
import org.mozilla.vrbrowser.utils.LocaleUtils;

Expand Down Expand Up @@ -41,14 +40,6 @@ public void onConfigurationChanged(Configuration newConfig) {
LocaleUtils.setLocale(this);
}

public AppDatabase getDatabase() {
return AppDatabase.getInstance(this, mAppExecutors);
}

public DataRepository getRepository() {
return DataRepository.getInstance(getDatabase(), mAppExecutors);
}

public Places getPlaces() {
return mPlaces;
}
Expand Down
74 changes: 0 additions & 74 deletions app/src/common/shared/org/mozilla/vrbrowser/db/AppDatabase.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5e4d0fc

Please sign in to comment.