bt2: remove unused `_FieldClassConst._check_create_status()` method
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 24 Oct 2024 03:36:08 +0000 (23:36 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 16:17:44 +0000 (11:17 -0500)
Change-Id: Idd4ec7facdc0e812ccf7e9afbed33e28e55f6ef1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13401
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/field_class.py

index b361828fc2d34a6336614a05c5a61437ce1686fa..eff66db639a1c53031e9343832aa021e57e29bec 100644 (file)
@@ -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
This page took 0.024836 seconds and 4 git commands to generate.