bt2: remove some unnecessary checks
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 6 Nov 2024 04:24:31 +0000 (23:24 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 7 Nov 2024 21:03:40 +0000 (16:03 -0500)
commit8e34864c197fe967c47ad4166823f6df6748a9f6
tree02aa8d3de04dc5c7083044471cbbb21e4e75278f
parentdf4b0828816de5632b09a0c3946b0cad00af811e
bt2: remove some unnecessary checks

 - getting the id from a stream class, stream or event class can't
   return negative values
 - getting the trace class from a trace can't return None
 - getting the stream class from a stream can't return None

Change-Id: If797994f4a10072f662c122c15a5081419d9fa3d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13502
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/event.py
src/bindings/python/bt2/bt2/event_class.py
src/bindings/python/bt2/bt2/stream.py
src/bindings/python/bt2/bt2/stream_class.py
This page took 0.024563 seconds and 4 git commands to generate.