فهرست منبع

remove some useless code

blueloveTH 3 سال پیش
والد
کامیت
0b1ba59024
2فایلهای تغییر یافته به همراه1 افزوده شده و 9 حذف شده
  1. 1 1
      build_cpp.sh
  2. 0 8
      src/str.h

+ 1 - 1
build_cpp.sh

@@ -1 +1 @@
-g++ -o pocketpy src/main.cpp --std=c++17 -O1 -pthread -Wno-literal-suffix
+g++ -o pocketpy src/main.cpp --std=c++17 -O1 -pthread

+ 0 - 8
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;
     }