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

@@ -1579,40 +1579,6 @@ public class Activity extends ContextThemeWrapper
return c;
}
/**
* Wrapper around {@link Cursor#commitUpdates()} that takes care of noting
* that the Cursor needs to be requeried. You can call this method in
* {@link #onPause} or {@link #onStop} to have the system call
* {@link Cursor#requery} for you if the activity is later resumed. This
* allows you to avoid determing when to do the requery yourself (which is
* required for the Cursor to see any data changes that were committed with
* it).
*
* @param c The Cursor whose changes are to be committed.
*
* @see #managedQuery(android.net.Uri , String[], String, String[], String)
* @see #startManagingCursor
* @see Cursor#commitUpdates()
* @see Cursor#requery
* @hide
*/
@Deprecated
public void managedCommitUpdates(Cursor c) {
synchronized (mManagedCursors) {
final int N = mManagedCursors.size();
for (int i=0; i<N; i++) {
ManagedCursor mc = mManagedCursors.get(i);
if (mc.mCursor == c) {
c.commitUpdates();
mc.mUpdated = true;
return;
}
}
throw new RuntimeException(
"Cursor " + c + " is not currently managed");
}
}
/**
* This method allows the activity to take care of managing the given
* {@link Cursor}'s lifecycle for you based on the activity's lifecycle.