blueloveTH 1 год назад
Родитель
Сommit
8f94979e4c
1 измененных файлов с 0 добавлено и 18 удалено
  1. 0 18
      include/pocketpy/common.h

+ 0 - 18
include/pocketpy/common.h

@@ -62,24 +62,6 @@ namespace pkpy{
 
 namespace std = ::std;
 
-template <size_t T>
-struct NumberTraits;
-
-template <>
-struct NumberTraits<4> {
-	using int_t = int32_t;
-	static constexpr int_t kMaxSmallInt = (1 << 28) - 1;
-	static constexpr int_t kMinSmallInt = 0;
-};
-
-template <>
-struct NumberTraits<8> {
-	using int_t = int64_t;
-	static constexpr int_t kMaxSmallInt = (1ll << 60) - 1;
-	static constexpr int_t kMinSmallInt = 0;
-};
-
-using Number = NumberTraits<sizeof(void*)>;
 using i64 = int64_t;		// always 64-bit
 using f64 = double;			// always 64-bit