From 0b1ba59024e4a6d91e3312d0b9998a023728d568 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 19 Nov 2022 17:27:43 +0800 Subject: [PATCH] remove some useless code --- build_cpp.sh | 2 +- src/str.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/build_cpp.sh b/build_cpp.sh index 0ab68f89..b34d05d9 100644 --- a/build_cpp.sh +++ b/build_cpp.sh @@ -1 +1 @@ -g++ -o pocketpy src/main.cpp --std=c++17 -O1 -pthread -Wno-literal-suffix \ No newline at end of file +g++ -o pocketpy src/main.cpp --std=c++17 -O1 -pthread \ No newline at end of file diff --git a/src/str.h b/src/str.h index 24ea3e57..f641ee90 100644 --- a/src/str.h +++ b/src/str.h @@ -150,14 +150,6 @@ public: return *_s != *other._s; } - bool operator==(const char* other) const { - return *_s == other; - } - - bool operator!=(const char* other) const { - return *_s != other; - } - bool operator<(const _Str& other) const { return *_s < *other._s; }