Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
This commit is contained in:
Jeff Hamilton
2010-05-12 17:30:27 -05:00
parent 93f8547dcf
commit 7cd51efcbd
14 changed files with 10 additions and 986 deletions

View File

@@ -3532,20 +3532,8 @@ public final class Settings {
// If a shortcut is supplied, and it is already defined for
// another bookmark, then remove the old definition.
if (shortcut != 0) {
Cursor c = cr.query(CONTENT_URI,
sShortcutProjection, sShortcutSelection,
new String[] { String.valueOf((int) shortcut) }, null);
try {
if (c.moveToFirst()) {
while (c.getCount() > 0) {
if (!c.deleteRow()) {
Log.w(TAG, "Could not delete existing shortcut row");
}
}
}
} finally {
if (c != null) c.close();
}
cr.delete(CONTENT_URI, sShortcutSelection,
new String[] { String.valueOf((int) shortcut) });
}
ContentValues values = new ContentValues();