From a4ad5062c3fa1787b208389123bb81ea57483142 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 7 Mar 2015 20:53:21 +0000 Subject: LinGui: remove unused function git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6975 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/values.c | 31 ------------------------------- gtk/src/values.h | 1 - 2 files changed, 32 deletions(-) (limited to 'gtk') diff --git a/gtk/src/values.c b/gtk/src/values.c index 749ce0bca..b7ceaf082 100644 --- a/gtk/src/values.c +++ b/gtk/src/values.c @@ -31,37 +31,6 @@ ghb_value_type(const GhbValue *val) return type; } -GhbValue* -ghb_value_new(GhbType type) -{ - GhbValue *val = NULL; - switch (type) - { - case GHB_DICT: - val = json_object(); - break; - case GHB_ARRAY: - val = json_array(); - break; - case GHB_STRING: - val = json_string(""); - break; - case GHB_INT: - val = json_integer(0); - break; - case GHB_DOUBLE: - val = json_real(0.0); - break; - case GHB_BOOL: - val = json_false(); - break; - default: - g_warning("Unrecognized GHB value type %d", type); - break; - } - return val; -} - void ghb_value_incref(GhbValue *gval) { diff --git a/gtk/src/values.h b/gtk/src/values.h index dd3a1dc04..7c8786f5d 100644 --- a/gtk/src/values.h +++ b/gtk/src/values.h @@ -47,7 +47,6 @@ void ghb_array_copy(GhbValue *arr1, GhbValue *arr2, gint count); GhbValue* ghb_value_xform(const GhbValue *val, GhbType type); void ghb_value_free(GhbValue *gval); -GhbValue* ghb_value_new(GhbType type); GhbValue* ghb_value_dup(const GhbValue *val); gint ghb_value_int(const GhbValue *val); gint64 ghb_value_int64(const GhbValue *val); -- cgit v1.2.3