summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-07-16 14:29:05 -0700
committer android-build-merger <android-build-merger@google.com> 2019-07-16 14:29:05 -0700
commitcaf0dd54ef4545b47732abe890b7eaa79302beae (patch)
treec50efe24a1c03403f7a43984147408483c1ae4b5 /libs
parentca8c3dedaf080ce76d6fd0cae959a01880df073b (diff)
parent1b03400998c5425a32a42160a7f7400fa033e681 (diff)
Merge "libbinder: remove Parcel::remove"
am: 1b03400998 Change-Id: Iedf8b6ca36e6d15c95890950689bf6ba2225d566
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/IPCThreadState.cpp2
-rw-r--r--libs/binder/Parcel.cpp5
-rw-r--r--libs/binder/include/binder/Parcel.h2
3 files changed, 1 insertions, 8 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 0e210546d3..cfb86f021c 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -999,7 +999,7 @@ status_t IPCThreadState::talkWithDriver(bool doReceive)
if (err >= NO_ERROR) {
if (bwr.write_consumed > 0) {
if (bwr.write_consumed < mOut.dataSize())
- mOut.remove(0, bwr.write_consumed);
+ LOG_ALWAYS_FATAL("Driver did not consume write buffer");
else {
mOut.setDataSize(0);
processPostWriteDerefs();
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 5bc3075f04..85822efa09 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -1394,11 +1394,6 @@ status_t Parcel::writeNoException()
return status.writeToParcel(this);
}
-void Parcel::remove(size_t /*start*/, size_t /*amt*/)
-{
- LOG_ALWAYS_FATAL("Parcel::remove() not yet implemented!");
-}
-
status_t Parcel::validateReadData(size_t upperBound) const
{
// Don't allow non-object reads on object data
diff --git a/libs/binder/include/binder/Parcel.h b/libs/binder/include/binder/Parcel.h
index 766213e1b3..ecce6d71e2 100644
--- a/libs/binder/include/binder/Parcel.h
+++ b/libs/binder/include/binder/Parcel.h
@@ -235,8 +235,6 @@ public:
// Currently the native implementation doesn't do any of the StrictMode
// stack gathering and serialization that the Java implementation does.
status_t writeNoException();
-
- void remove(size_t start, size_t amt);
status_t read(void* outData, size_t len) const;
const void* readInplace(size_t len) const;