From 4ccebbd355fb53177dcc46476a5e5105f4859410 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 18 May 2018 01:02:13 +0200 Subject: Simplify code by dropping session_is_valid(). A simple NULL check is sufficient here, max_session_id is being properly handled by srd_init(), srd_exit(), srd_session_new(). This might also have a small performance benefit. --- libsigrokdecode-internal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'libsigrokdecode-internal.h') diff --git a/libsigrokdecode-internal.h b/libsigrokdecode-internal.h index 6fb590c..f1f8e18 100644 --- a/libsigrokdecode-internal.h +++ b/libsigrokdecode-internal.h @@ -70,7 +70,6 @@ struct srd_session { SRD_PRIV int srd_decoder_searchpath_add(const char *path); /* session.c */ -SRD_PRIV int session_is_valid(struct srd_session *sess); SRD_PRIV struct srd_pd_callback *srd_pd_output_callback_find(struct srd_session *sess, int output_type); -- cgit v1.2.3-70-g09d2