From ccef2d8860f55d56f7662cc218defe5447e226e4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 14 Apr 2017 13:44:08 -0700 Subject: [PATCH] Make prefs_register_subtree() static too. It's not used outside epan/prefs.c, and it probably shouldn't be. Change-Id: I8a10961a33b93db1de982eec264c134f9f3bc66c Reviewed-on: https://code.wireshark.org/review/21096 Reviewed-by: Guy Harris --- epan/prefs.c | 2 +- epan/prefs.h | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/epan/prefs.c b/epan/prefs.c index 7d1ac2ae5a..5e0b8e6268 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -455,7 +455,7 @@ prefs_deregister_module(module_t *parent, const char *name, const char *title) * at the top level and the title used in the tab for it in a preferences * dialog box. */ -module_t * +static module_t * prefs_register_subtree(module_t *parent, const char *title, const char *description, void (*apply_cb)(void)) { diff --git a/epan/prefs.h b/epan/prefs.h index cd88dac9b4..4a8566c63f 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -269,15 +269,6 @@ WS_DLL_PUBLIC void prefs_reset(void); /** Frees memory used by proto routines. Called at program shutdown */ void prefs_cleanup(void); -/* - * Register a subtree that will have modules under it. - * Specify the module under which to register it or NULL to register it - * at the top level and the title used in the tab for it in a preferences - * dialog box. - */ -WS_DLL_PUBLIC module_t *prefs_register_subtree(module_t *parent, const char *title, - const char *description, void (*apply_cb)(void)); - /* * Register that a protocol has preferences. */