Remove unused return in DocumentsProvider.removeDocument.
It's not used anywhere. Exceptions should be thrown on an error.
Bug: 27113305
Change-Id: I9d549169e177004597f136776c6763c93101c0c4
diff --git a/api/current.txt b/api/current.txt
index 617aac0..2f8a17f 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -31747,7 +31747,7 @@
method public android.database.Cursor queryRecentDocuments(java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
method public abstract android.database.Cursor queryRoots(java.lang.String[]) throws java.io.FileNotFoundException;
method public android.database.Cursor querySearchDocuments(java.lang.String, java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
- method public boolean removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
+ method public void removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public java.lang.String renameDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public final void revokeDocumentPermission(java.lang.String);
method public final int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
diff --git a/api/system-current.txt b/api/system-current.txt
index ec422c0..6883251 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -34128,7 +34128,7 @@
method public android.database.Cursor queryRecentDocuments(java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
method public abstract android.database.Cursor queryRoots(java.lang.String[]) throws java.io.FileNotFoundException;
method public android.database.Cursor querySearchDocuments(java.lang.String, java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
- method public boolean removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
+ method public void removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public java.lang.String renameDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public final void revokeDocumentPermission(java.lang.String);
method public final int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
diff --git a/api/test-current.txt b/api/test-current.txt
index d202108..293e596 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -31760,7 +31760,7 @@
method public android.database.Cursor queryRecentDocuments(java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
method public abstract android.database.Cursor queryRoots(java.lang.String[]) throws java.io.FileNotFoundException;
method public android.database.Cursor querySearchDocuments(java.lang.String, java.lang.String, java.lang.String[]) throws java.io.FileNotFoundException;
- method public boolean removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
+ method public void removeDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public java.lang.String renameDocument(java.lang.String, java.lang.String) throws java.io.FileNotFoundException;
method public final void revokeDocumentPermission(java.lang.String);
method public final int update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]);
diff --git a/core/java/android/provider/DocumentsProvider.java b/core/java/android/provider/DocumentsProvider.java
index 2250629..92ab47a 100644
--- a/core/java/android/provider/DocumentsProvider.java
+++ b/core/java/android/provider/DocumentsProvider.java
@@ -316,7 +316,7 @@
* @param parentDocumentId the parent of the document to move.
*/
@SuppressWarnings("unused")
- public boolean removeDocument(String documentId, String parentDocumentId)
+ public void removeDocument(String documentId, String parentDocumentId)
throws FileNotFoundException {
throw new UnsupportedOperationException("Remove not supported");
}