mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
remove deprecated
This commit is contained in:
parent
bdb4171831
commit
72d5c1cf63
@ -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 {};
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user