summaryrefslogtreecommitdiff
path: root/artd/path_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'artd/path_utils.cc')
-rw-r--r--artd/path_utils.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/artd/path_utils.cc b/artd/path_utils.cc
index 5c6ad9dc02..8348a7605d 100644
--- a/artd/path_utils.cc
+++ b/artd/path_utils.cc
@@ -23,7 +23,6 @@
#include "aidl/com/android/server/art/BnArtd.h"
#include "android-base/errors.h"
#include "android-base/result.h"
-#include "android-base/strings.h"
#include "arch/instruction_set.h"
#include "base/file_utils.h"
#include "base/macros.h"
@@ -45,7 +44,6 @@ using ::aidl::com::android::server::art::OutputProfile;
using ::aidl::com::android::server::art::ProfilePath;
using ::aidl::com::android::server::art::RuntimeArtifactsPath;
using ::aidl::com::android::server::art::VdexPath;
-using ::android::base::EndsWith;
using ::android::base::Error;
using ::android::base::Result;
using ::art::service::ValidateDexPath;
@@ -335,7 +333,7 @@ bool PreRebootFlag(const VdexPath& vdex_path) {
}
bool IsPreRebootStagedFile(std::string_view filename) {
- return EndsWith(filename, kPreRebootSuffix);
+ return filename.ends_with(kPreRebootSuffix);
}
void TestOnlySetListRootDir(std::string_view root_dir) { gListRootDir = root_dir; }