Remove now-unused functions.

Change-Id: Iecf230d493b31ecab25b33c67323987459b23bd7
Reviewed-on: https://code.wireshark.org/review/2242
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Evan Huus 2014-06-15 12:44:01 -04:00 committed by Michael Mann
parent dd596dbcfd
commit 39a14ab75f
4 changed files with 1 additions and 42 deletions

View File

@ -966,12 +966,6 @@ ep_strdup(const gchar *src)
return emem_strdup(src, ep_alloc);
}
gchar *
se_strdup(const gchar *src)
{
return emem_strdup(src, se_alloc);
}
static gchar *
emem_strndup(const gchar *src, size_t len, void *allocator(size_t))
{
@ -1000,12 +994,6 @@ ep_memdup(const void* src, size_t len)
return memcpy(ep_alloc(len), src, len);
}
void *
se_memdup(const void* src, size_t len)
{
return memcpy(se_alloc(len), src, len);
}
static gchar *
emem_strdup_vprintf(const gchar *fmt, va_list ap, void *allocator(size_t))
{

View File

@ -120,14 +120,6 @@ WS_DLL_PUBLIC
void* se_alloc0(size_t size) G_GNUC_MALLOC;
#define se_new0(type) ((type*)se_alloc0(sizeof(type)))
/** Duplicate a string with a capture lifetime scope */
WS_DLL_PUBLIC
gchar* se_strdup(const gchar* src) G_GNUC_MALLOC;
/** Duplicate a buffer with a capture lifetime scope */
WS_DLL_PUBLIC
void* se_memdup(const void* src, size_t len) G_GNUC_MALLOC;
/* Create a formatted string with a capture lifetime scope */
WS_DLL_PUBLIC
gchar* se_strdup_printf(const gchar* fmt, ...)

View File

@ -393,18 +393,6 @@ void uat_clear(uat_t* uat) {
*((uat)->nrows_p) = 0;
}
void* uat_dup(uat_t* uat, guint* len_p) {
guint size = (guint) (uat->record_size * uat->user_data->len);
*len_p = size;
return size ? g_memdup(uat->user_data->data,size) : NULL ;
}
void* uat_se_dup(uat_t* uat, guint* len_p) {
guint size = (guint) (uat->record_size * uat->user_data->len);
*len_p = (guint) size;
return size ? se_memdup(uat->user_data->data,size) : NULL ;
}
void uat_unload_all(void) {
guint i;

View File

@ -54,7 +54,7 @@ extern "C" {
*
* UATs are meant for short tables of user data (passwords and such) there's
* no quick access, you must iterate through them each time to fetch the record
* you are looking for. Use uat_dup() or uat_se_dup() if necessary.
* you are looking for.
*
* Only users via gui or editing the file can add/remove records your code cannot.
*/
@ -299,15 +299,6 @@ gboolean uat_load_str(uat_t* uat_in, char* entry, char** err);
*/
uat_t *uat_find(gchar *name);
/*
* uat_dup()
* uat_se_dup()
* make a reliable copy of an uat for internal use,
* so that pointers to records can be kept through calls.
* return NULL on zero len.
*/
void* uat_dup(uat_t*, guint* len_p); /* to be freed */
void* uat_se_dup(uat_t*, guint* len_p);
WS_DLL_PUBLIC
uat_t* uat_get_table_by_name(const char* name);