aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-02-11 18:15:50 +0000
committerSteven Moreland <smoreland@google.com>2017-02-11 14:07:47 -0800
commit976ae898472e03f31c56eb1df62c81842e0ccb90 (patch)
tree887bddb5e0c2e381055d059ad527bd0984513c39 /utils
parent3b0b99dc25c3035107b42140016e9d2a948fb8d1 (diff)
downloadhidl-976ae898472e03f31c56eb1df62c81842e0ccb90.tar.gz
Revert "Enforce minor version uprevs."
This reverts commit 2d20ae0dabf690872bd73da480558072a6980998. Change-Id: Id4a349c33838a1921a4da738b9fb1970f313ef26
Diffstat (limited to 'utils')
-rw-r--r--utils/FQName.cpp7
-rw-r--r--utils/include/hidl-util/FQName.h3
2 files changed, 0 insertions, 10 deletions
diff --git a/utils/FQName.cpp b/utils/FQName.cpp
index 630fff47..dd29f486 100644
--- a/utils/FQName.cpp
+++ b/utils/FQName.cpp
@@ -517,12 +517,5 @@ bool FQName::inPackage(const std::string &package) const {
return true;
}
-FQName FQName::downRev() const {
- FQName ret(*this);
- CHECK(ret.mMinor > 0);
- ret.mMinor--;
- return ret;
-}
-
} // namespace android
diff --git a/utils/include/hidl-util/FQName.h b/utils/include/hidl-util/FQName.h
index 3891c92b..796e8927 100644
--- a/utils/include/hidl-util/FQName.h
+++ b/utils/include/hidl-util/FQName.h
@@ -206,9 +206,6 @@ struct FQName {
size_t getPackageMajorVersion() const;
size_t getPackageMinorVersion() const;
- // minor-- if result doesn't underflow, else abort.
- FQName downRev() const;
-
private:
bool mValid;
bool mIsIdentifier;