From 6de807af0346e773c0ec731fa7ec932179128184 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 10 Nov 2020 21:59:26 +0000 Subject: libbinder: remove readIntPtr Unused. Bug: N/A Test: build only Change-Id: I8d4ecb27364e8e16edb42ab77e0d0c8876b19043 --- libs/binder/Parcel.cpp | 11 ----------- libs/binder/include/binder/Parcel.h | 2 -- libs/binder/parcel_fuzzer/binder.cpp | 1 - 3 files changed, 14 deletions(-) diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 40dd09b180..0efd5e5446 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1906,17 +1906,6 @@ double Parcel::readDouble() const #endif -status_t Parcel::readIntPtr(intptr_t *pArg) const -{ - return readAligned(pArg); -} - - -intptr_t Parcel::readIntPtr() const -{ - return readAligned(); -} - status_t Parcel::readBool(bool *pArg) const { int32_t tmp = 0; diff --git a/libs/binder/include/binder/Parcel.h b/libs/binder/include/binder/Parcel.h index fbfd6c5d71..f4bd94ed55 100644 --- a/libs/binder/include/binder/Parcel.h +++ b/libs/binder/include/binder/Parcel.h @@ -297,8 +297,6 @@ public: status_t readFloat(float *pArg) const; double readDouble() const; status_t readDouble(double *pArg) const; - intptr_t readIntPtr() const; - status_t readIntPtr(intptr_t *pArg) const; bool readBool() const; status_t readBool(bool *pArg) const; char16_t readChar() const; diff --git a/libs/binder/parcel_fuzzer/binder.cpp b/libs/binder/parcel_fuzzer/binder.cpp index e5c6333b79..a94f06fa85 100644 --- a/libs/binder/parcel_fuzzer/binder.cpp +++ b/libs/binder/parcel_fuzzer/binder.cpp @@ -130,7 +130,6 @@ std::vector> BINDER_PARCEL_READ_FUNCTIONS { PARCEL_READ_OPT_STATUS(uint64_t, readUint64), PARCEL_READ_OPT_STATUS(float, readFloat), PARCEL_READ_OPT_STATUS(double, readDouble), - PARCEL_READ_OPT_STATUS(intptr_t, readIntPtr), PARCEL_READ_OPT_STATUS(bool, readBool), PARCEL_READ_OPT_STATUS(char16_t, readChar), PARCEL_READ_OPT_STATUS(int8_t, readByte), -- cgit v1.2.3-59-g8ed1b