Browse Source

remove deprecated

blueloveTH 1 year ago
parent
commit
72d5c1cf63
2 changed files with 0 additions and 10 deletions
  1. 0 5
      include/pocketpy/obj.h
  2. 0 5
      include/pocketpy/vm.h

+ 0 - 5
include/pocketpy/obj.h

@@ -144,11 +144,6 @@ inline bool is_type(PyObject* obj, Type type) {
     return is_small_int(obj) ? type.index == kTpIntIndex : obj->type == type;
 }
 
-[[deprecated("use is_type() instead")]]
-inline bool is_non_tagged_type(PyObject* obj, Type type) {
-    return is_type(obj, type);
-}
-
 template <typename, typename=void> struct has_gc_marker : std::false_type {};
 template <typename T> struct has_gc_marker<T, std::void_t<decltype(&T::_gc_mark)>> : std::true_type {};
 

+ 0 - 5
include/pocketpy/vm.h

@@ -341,11 +341,6 @@ public:
         TypeError("expected " + _type_name(vm, type).escape() + ", got " + _type_name(vm, _tp(obj)).escape());
     }
 
-    [[deprecated("use check_type() instead")]]
-    void check_non_tagged_type(PyObject* obj, Type type){
-        return check_type(obj, type);
-    }
-
     void check_compatible_type(PyObject* obj, Type type){
         if(isinstance(obj, type)) return;
         TypeError("expected " + _type_name(vm, type).escape() + ", got " + _type_name(vm, _tp(obj)).escape());