remove deprecated

This commit is contained in:
blueloveTH 2024-04-28 17:40:41 +08:00
parent bdb4171831
commit 72d5c1cf63
2 changed files with 0 additions and 10 deletions

View File

@ -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 {};

View File

@ -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());