From: Simon Marchi Date: Thu, 24 Oct 2024 03:36:08 +0000 (-0400) Subject: bt2: remove unused `_FieldClassConst._check_create_status()` method X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7845b039e8471197cb8a1dda7658d9d3fc257676;p=babeltrace.git bt2: remove unused `_FieldClassConst._check_create_status()` method Change-Id: Idd4ec7facdc0e812ccf7e9afbed33e28e55f6ef1 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/13401 Reviewed-by: Philippe Proulx --- diff --git a/src/bindings/python/bt2/bt2/field_class.py b/src/bindings/python/bt2/bt2/field_class.py index b361828f..eff66db6 100644 --- a/src/bindings/python/bt2/bt2/field_class.py +++ b/src/bindings/python/bt2/bt2/field_class.py @@ -4,7 +4,6 @@ import collections.abc -from bt2 import error as bt2_error from bt2 import utils as bt2_utils from bt2 import value as bt2_value from bt2 import object as bt2_object @@ -61,12 +60,6 @@ class _FieldClassConst(bt2_object._SharedObject, bt2_user_attrs._WithUserAttrsCo def _borrow_user_attributes_ptr(ptr): return native_bt.field_class_borrow_user_attributes_const(ptr) - def _check_create_status(self, ptr): - if ptr is None: - raise bt2_error._MemoryError( - "cannot create {} field class object".format(self._NAME.lower()) - ) - class _FieldClass(bt2_user_attrs._WithUserAttrs, _FieldClassConst): @staticmethod