summaryrefslogtreecommitdiff
path: root/dexopt_chroot_setup
diff options
context:
space:
mode:
Diffstat (limited to 'dexopt_chroot_setup')
-rw-r--r--dexopt_chroot_setup/dexopt_chroot_setup.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/dexopt_chroot_setup/dexopt_chroot_setup.cc b/dexopt_chroot_setup/dexopt_chroot_setup.cc
index d98f883df9..937cd3028b 100644
--- a/dexopt_chroot_setup/dexopt_chroot_setup.cc
+++ b/dexopt_chroot_setup/dexopt_chroot_setup.cc
@@ -58,7 +58,6 @@ namespace dexopt_chroot_setup {
namespace {
using ::android::base::ConsumePrefix;
-using ::android::base::EndsWith;
using ::android::base::Error;
using ::android::base::Join;
using ::android::base::NoDestructor;
@@ -210,7 +209,7 @@ Result<void> BindMount(const std::string& source, const std::string& target) {
}
Result<void> BindMountRecursive(const std::string& source, const std::string& target) {
- CHECK(!EndsWith(source, '/'));
+ CHECK(!source.ends_with('/'));
OR_RETURN(BindMount(source, target));
// Mount and make slave one by one. Do not use MS_REC because we don't want to mount a child if
@@ -222,7 +221,7 @@ Result<void> BindMountRecursive(const std::string& source, const std::string& ta
// The list is in mount order.
std::vector<FstabEntry> entries = OR_RETURN(GetProcMountsDescendantsOfPath(source));
for (const FstabEntry& entry : entries) {
- CHECK(!EndsWith(entry.mount_point, '/'));
+ CHECK(!entry.mount_point.ends_with('/'));
std::string_view sub_dir = entry.mount_point;
CHECK(ConsumePrefix(&sub_dir, source));
if (sub_dir.empty()) {