Status.h: remove service specific error codes.
These are leftover from binder and are never used in HIDL/hwbinder.
Test: libhidl_test + hidl_test + internal marlin boots/works.
Bug: 36099713
Change-Id: I12b20e1ae54d9df802a961bc9bc99f616291b0fd
diff --git a/transport/HidlBinderSupport.cpp b/transport/HidlBinderSupport.cpp
index 55f9a91..c0601ca 100644
--- a/transport/HidlBinderSupport.cpp
+++ b/transport/HidlBinderSupport.cpp
@@ -109,7 +109,6 @@
status_t readFromParcel(Status *s, const Parcel& parcel) {
int32_t exception;
- int32_t errorCode;
status_t status = parcel.readInt32(&exception);
if (status != OK) {
s->setFromStatusT(status);
@@ -145,19 +144,7 @@
return status;
}
- if (exception == Status::EX_SERVICE_SPECIFIC) {
- status = parcel.readInt32(&errorCode);
- }
- if (status != OK) {
- s->setFromStatusT(status);
- return status;
- }
-
- if (exception == Status::EX_SERVICE_SPECIFIC) {
- s->setServiceSpecificError(errorCode, String8(message));
- } else {
- s->setException(exception, String8(message));
- }
+ s->setException(exception, String8(message));
return status;
}
@@ -176,11 +163,6 @@
return status;
}
status = parcel->writeString16(String16(s.exceptionMessage()));
- if (s.exceptionCode() != Status::EX_SERVICE_SPECIFIC) {
- // We have no more information to write.
- return status;
- }
- status = parcel->writeInt32(s.serviceSpecificErrorCode());
return status;
}