prefs: Remove prefs_register_decode_as_preference

All Decode As auto preferences are registered as ranges now,
so remove this internal function. Ping #14319.
This commit is contained in:
John Thacker 2022-08-04 07:16:16 -04:00
parent 59909dfb5d
commit 452b5e3e0f
2 changed files with 0 additions and 38 deletions

View File

@ -1890,23 +1890,6 @@ void prefs_register_decode_as_range_preference(module_t *module, const char *nam
description, var, max_value, PREF_DECODE_AS_RANGE);
}
/*
* Register a (internal) "Decode As" preference with an unsigned integral value
* for a dissector table.
*/
void prefs_register_decode_as_preference(module_t *module, const char *name,
const char *title, const char *description, guint *var)
{
pref_t *preference;
preference = register_preference(module, name, title, description,
PREF_DECODE_AS_UINT);
preference->varp.uint = var;
preference->default_val.uint = *var;
/* XXX - Presume base 10 for now */
preference->info.base = 10;
}
/*
* Register a preference with password value.
*/

View File

@ -748,27 +748,6 @@ void prefs_register_decode_as_range_preference(module_t *module, const char *nam
const char *title, const char *description, range_t **var,
guint32 max_value);
/**
* Register a (internal) "Decode As" preference with an unsigned integral value
* for a dissector table.
*
* @param module the preferences module returned by prefs_register_protocol() or
* prefs_register_protocol_subtree()
* @param name the preference's identifier. This is appended to the name of the
* protocol, with a "." between them, to create a unique identifier.
* The identifier should not include the protocol name, as the name in
* the preference file will already have it. Make sure that
* only lower-case ASCII letters, numbers, underscores and
* dots appear in the preference name.
* @param title Field's title in the preferences dialog
* @param description description to include in the preferences file
* and shown as tooltip in the GUI, or NULL
* @param var pointer to the storage location that is updated when the
* field is changed in the preference dialog box.
*/
void prefs_register_decode_as_preference(module_t *module, const char *name,
const char *title, const char *description, guint *var);
/**
* Register a preference with an password (password is never stored).
* @param module the preferences module returned by prefs_register_protocol() or