summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-07 20:53:21 +0000
committerjstebbins <[email protected]>2015-03-07 20:53:21 +0000
commita4ad5062c3fa1787b208389123bb81ea57483142 (patch)
treee873951f241d38bb3c017d60784fbe643286f43a /gtk/src
parent37b12ce6026a0a62cf306416cb3faf51bddb7cdf (diff)
LinGui: remove unused function
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6975 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/values.c31
-rw-r--r--gtk/src/values.h1
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);