aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-02 17:49:10 -0800
committerGarrett D'Amore <garrett@damore.org>2018-03-02 17:49:10 -0800
commita315244fc92aaed52cd4c620521c797c7a0b5f4c (patch)
tree735783033032b1a350e0f3c48984daa16c43cd4f
parentee8ddef8982d5b56dd4b67d9ae00b330cdb1dba1 (diff)
downloadnng-a315244fc92aaed52cd4c620521c797c7a0b5f4c.tar.gz
nng-a315244fc92aaed52cd4c620521c797c7a0b5f4c.tar.bz2
nng-a315244fc92aaed52cd4c620521c797c7a0b5f4c.zip
Remove some dead code.
-rw-r--r--src/nng.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/nng.c b/src/nng.c
index c2e3161d..b7255904 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1195,52 +1195,6 @@ nng_stat_value(nng_stat *stat)
}
#endif
-#if 0
-// These routines exist as utility functions, exposing some of our
-// "guts" to the external world for the purposes of test code and
-// bundled utilities. They should not be considered part of our public
-// API, and applications should refrain from their use.
-
-void
-nng_msleep(nng_duration ms)
-{
- nni_msleep(ms);
-}
-
-// nng_thread_create creates a thread structure, and starts it running.
-// Unlike the internals, this allocates stuff dynamically, and does not
-// wait to start.
-int
-nng_thread_create(void **thrp, void (*func)(void *), void *arg)
-{
- nni_thr *thr;
- int rv;
-
- (void) nni_init();
-
- if ((thr = NNI_ALLOC_STRUCT(thr)) == NULL) {
- return (NNG_ENOMEM);
- }
- memset(thr, 0, sizeof(*thr));
- *thrp = thr;
- if ((rv = nni_thr_init(thr, func, arg)) != 0) {
- return (rv);
- }
- nni_thr_run(thr);
- return (0);
-}
-
-void
-nng_thread_destroy(void *arg)
-{
- nni_thr *thr = arg;
-
- nni_thr_fini(thr);
-
- NNI_FREE_STRUCT(thr);
-}
-#endif
-
int
nng_url_parse(nng_url **result, const char *ustr)
{