Remove getStatus from Return<*>.
The status is already exposed via isOk. Recoverable transport errors can
be recovered from via linkToDeath and registering for service
notifications. Debug information is exposed via Return<*>::description.
Bug: 31348667
Test: compiles
Change-Id: Ia776dccfb80c0c5f0975e97cd709d8f25716119b
diff --git a/base/include/hidl/Status.h b/base/include/hidl/Status.h
index f17c968..1be818d 100644
--- a/base/include/hidl/Status.h
+++ b/base/include/hidl/Status.h
@@ -172,12 +172,6 @@
return mStatus.isOk();
}
- // TODO(b/31348667) deprecate and replace with 'string description()'
- const Status& getStatus() const {
- mCheckedStatus = true;
- return mStatus;
- }
-
// For debugging purposes only
std::string description() const {
// Doesn't consider checked.