Merge "Do not add empty <vndk> tag to device compatibility matrix"
diff --git a/AssembleVintf.cpp b/AssembleVintf.cpp
index d2a0b8f..a3f2838 100644
--- a/AssembleVintf.cpp
+++ b/AssembleVintf.cpp
@@ -256,14 +256,6 @@
return ret;
}
- static std::string getFileNameFromPath(std::string path) {
- auto idx = path.find_last_of("\\/");
- if (idx != std::string::npos) {
- path.erase(0, idx + 1);
- }
- return path;
- }
-
std::basic_ostream<char>& out() const { return mOutRef == nullptr ? std::cout : *mOutRef; }
template <typename S>
@@ -465,7 +457,7 @@
out() << " Input:" << std::endl;
for (const auto& e : *matrices) {
if (!e.name.empty()) {
- out() << " " << getFileNameFromPath(e.name) << std::endl;
+ out() << " " << base::Basename(e.name) << std::endl;
}
}
out() << "-->" << std::endl;