Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Remove database checks (debug info)
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 19, 2014
1 parent 61e7559 commit 54fd337
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ See for more information about XPrivacy 3 [this FAQ](https://github.com/M66B/XPr

**Next release**

* Fixed all problems reported through the debug info
* Updated Norwegian translation

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)
Expand Down
14 changes: 0 additions & 14 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,6 @@ public List<String> check() throws RemoteException {
}
}

File dbFile = getDbFile();
if (!dbFile.exists())
listError.add("Database does not exists");
if (!dbFile.canRead())
listError.add("Database not readable");
if (!dbFile.canWrite())
listError.add("Database not writable");

SQLiteDatabase db = getDb();
if (db == null)
listError.add("Database not available");
else if (!db.isOpen())
listError.add("Database not open");

return listError;
}

Expand Down

0 comments on commit 54fd337

Please sign in to comment.