From 93d6a8257b8ef4cfa82d457ed38054fd477eabdf Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 20 Aug 2021 05:48:36 +0800 Subject: [PATCH] remove unused function starts_with (#21979) old-commit-hash: 5f1ec6339fd01cd0979e272cf481c2e9a58d0889 --- selfdrive/common/util.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/selfdrive/common/util.h b/selfdrive/common/util.h index 39479bf080..845e71614e 100644 --- a/selfdrive/common/util.h +++ b/selfdrive/common/util.h @@ -41,10 +41,6 @@ T map_val(T x, T a1, T a2, T b1, T b2) { // ***** string helpers ***** -inline bool starts_with(const std::string& s, const std::string& prefix) { - return s.compare(0, prefix.size(), prefix) == 0; -} - template std::string string_format(const std::string& format, Args... args) { size_t size = snprintf(nullptr, 0, format.c_str(), args...) + 1;