]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading: remove unused cmd thread create func
authorVictor Julien <victor@inliniac.net>
Thu, 14 May 2015 08:17:16 +0000 (10:17 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 14 May 2015 12:27:01 +0000 (14:27 +0200)
src/tm-threads.c
src/tm-threads.h

index b77f52af4dbdb4bddd0d9bf84753472b19d6a067..171aca2e481141ea1d6a708e488486d452824a95 100644 (file)
@@ -1262,34 +1262,6 @@ ThreadVars *TmThreadCreateCmdThreadByName(char *name, char *module,
     return tv;
 }
 
-/**
- * \brief Creates and returns the TV instance for a CMD thread.
- *        This function supports only custom slot functions and hence a
- *        function pointer should be sent as an argument.
- *
- * \param name       Name of this TV instance
- * \param fn_p       Pointer to function when \"slots\" is of type \"custom\"
- * \param mucond     Flag to indicate whether to initialize the condition
- *                   and the mutex variables for this newly created TV.
- *
- * \retval the newly created TV instance, or NULL on error
- */
-ThreadVars *TmThreadCreateCmdThread(char *name, void *(fn_p)(void *),
-                                     int mucond)
-{
-    ThreadVars *tv = NULL;
-
-    tv = TmThreadCreate(name, NULL, NULL, NULL, NULL, "custom", fn_p, mucond);
-
-    if (tv != NULL) {
-        tv->type = TVT_CMD;
-        tv->id = TmThreadsRegisterThread(tv, tv->type);
-        TmThreadSetCPU(tv, MANAGEMENT_CPU_SET);
-    }
-
-    return tv;
-}
-
 /**
  * \brief Appends this TV to tv_root based on its type
  *
index 363a30b8b3d28de081c7d7f4d1d3d5155a7c30ac..9b9fd620dfd4fcff8004c4dfefa0525e09078cec 100644 (file)
@@ -91,7 +91,6 @@ ThreadVars *TmThreadCreatePacketHandler(char *, char *, char *, char *, char *,
 ThreadVars *TmThreadCreateMgmtThread(char *name, void *(fn_p)(void *), int);
 ThreadVars *TmThreadCreateMgmtThreadByName(char *name, char *module,
                                      int mucond);
-ThreadVars *TmThreadCreateCmdThread(char *name, void *(fn_p)(void *), int);
 ThreadVars *TmThreadCreateCmdThreadByName(char *name, char *module,
                                      int mucond);
 TmEcode TmThreadSpawn(ThreadVars *);