diff --git a/include/pocketpy/obj.h b/include/pocketpy/obj.h index 57e75f98..f877b5fb 100644 --- a/include/pocketpy/obj.h +++ b/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 struct has_gc_marker : std::false_type {}; template struct has_gc_marker> : std::true_type {}; diff --git a/include/pocketpy/vm.h b/include/pocketpy/vm.h index 56792496..f4a6691a 100644 --- a/include/pocketpy/vm.h +++ b/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());