summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-05-03 23:56:50 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-05-03 23:56:50 +0200
commitf6527cc4f7625eb5283eee5392312ad5df70e0f3 (patch)
tree3818e4732447d3cbeb6e1696144732a84896e130 /srd.c
parent2060510aaafcc7eb27fac071334b4f8aa1f3cab2 (diff)
downloadlibsigrokdecode-f6527cc4f7625eb5283eee5392312ad5df70e0f3.tar.gz
libsigrokdecode-f6527cc4f7625eb5283eee5392312ad5df70e0f3.zip
Move srd_check_init() to decoder.c and make it static.
The function srd_check_init() is only used in decoder.c.
Diffstat (limited to 'srd.c')
-rw-r--r--srd.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/srd.c b/srd.c
index 9d04a8e..61280ef 100644
--- a/srd.c
+++ b/srd.c
@@ -261,14 +261,4 @@ SRD_PRIV int srd_decoder_searchpath_add(const char *path)
return SRD_OK;
}
-/** @private */
-SRD_PRIV gboolean srd_check_init(void)
-{
- if (max_session_id < 0) {
- srd_err("Library is not initialized.");
- return FALSE;
- } else
- return TRUE;
-}
-
/** @} */