diff options
-rw-r--r-- | gtk/src/values.c | 31 | ||||
-rw-r--r-- | gtk/src/values.h | 1 |
2 files changed, 0 insertions, 32 deletions
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); |