[gjs] boxed, union, gerror: remove dead code
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] boxed, union, gerror: remove dead code
- Date: Tue, 7 May 2013 15:55:56 +0000 (UTC)
commit 0b3b9138651402f5a5fa5cb449d7eea81fc12082
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Apr 25 01:28:26 2013 +0200
boxed, union, gerror: remove dead code
https://bugzilla.gnome.org/show_bug.cgi?id=699818
gi/boxed.c | 31 -------------------------------
gi/boxed.h | 4 ----
gi/gerror.c | 31 -------------------------------
gi/gerror.h | 4 ----
gi/union.c | 31 -------------------------------
gi/union.h | 4 ----
6 files changed, 0 insertions(+), 105 deletions(-)
---
diff --git a/gi/boxed.c b/gi/boxed.c
index 191b6f8..26d7f69 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -954,26 +954,6 @@ static JSFunctionSpec gjs_boxed_proto_funcs[] = {
};
JSObject*
-gjs_lookup_boxed_constructor(JSContext *context,
- GIBoxedInfo *info)
-{
- JSObject *ns;
- JSObject *constructor;
-
- ns = gjs_lookup_namespace_object(context, (GIBaseInfo*) info);
-
- if (ns == NULL)
- return NULL;
-
- constructor = NULL;
- if (gjs_define_boxed_class(context, ns, info,
- &constructor, NULL))
- return constructor;
- else
- return NULL;
-}
-
-JSObject*
gjs_lookup_boxed_prototype(JSContext *context,
GIBoxedInfo *info)
{
@@ -992,17 +972,6 @@ gjs_lookup_boxed_prototype(JSContext *context,
return NULL;
}
-JSClass*
-gjs_lookup_boxed_class(JSContext *context,
- GIBoxedInfo *info)
-{
- JSObject *prototype;
-
- prototype = gjs_lookup_boxed_prototype(context, info);
-
- return JS_GetClass(prototype);
-}
-
static gboolean
type_can_be_allocated_directly(GITypeInfo *type_info)
{
diff --git a/gi/boxed.h b/gi/boxed.h
index 740137e..b00ac2a 100644
--- a/gi/boxed.h
+++ b/gi/boxed.h
@@ -45,12 +45,8 @@ JSBool gjs_define_boxed_class (JSContext *context,
GIBoxedInfo *info,
JSObject **constructor_p,
JSObject **prototype_p);
-JSObject* gjs_lookup_boxed_constructor (JSContext *context,
- GIBoxedInfo *info);
JSObject* gjs_lookup_boxed_prototype (JSContext *context,
GIBoxedInfo *info);
-JSClass* gjs_lookup_boxed_class (JSContext *context,
- GIBoxedInfo *info);
void* gjs_c_struct_from_boxed (JSContext *context,
JSObject *obj);
JSObject* gjs_boxed_from_c_struct (JSContext *context,
diff --git a/gi/gerror.c b/gi/gerror.c
index 1be6b5a..30e710c 100644
--- a/gi/gerror.c
+++ b/gi/gerror.c
@@ -354,26 +354,6 @@ static JSFunctionSpec gjs_error_constructor_funcs[] = {
};
JSObject*
-gjs_lookup_error_constructor(JSContext *context,
- GIEnumInfo *info)
-{
- JSObject *ns;
- JSObject *constructor;
-
- ns = gjs_lookup_namespace_object(context, (GIBaseInfo*) info);
-
- if (ns == NULL)
- return NULL;
-
- constructor = NULL;
- if (gjs_define_error_class(context, ns, info,
- &constructor, NULL))
- return constructor;
- else
- return NULL;
-}
-
-JSObject*
gjs_lookup_error_prototype(JSContext *context,
GIEnumInfo *info)
{
@@ -392,17 +372,6 @@ gjs_lookup_error_prototype(JSContext *context,
return NULL;
}
-JSClass*
-gjs_lookup_error_class(JSContext *context,
- GIEnumInfo *info)
-{
- JSObject *prototype;
-
- prototype = gjs_lookup_error_prototype(context, info);
-
- return JS_GetClass(prototype);
-}
-
JSBool
gjs_define_error_class(JSContext *context,
JSObject *in_object,
diff --git a/gi/gerror.h b/gi/gerror.h
index 61d67b0..6a42f28 100644
--- a/gi/gerror.h
+++ b/gi/gerror.h
@@ -36,12 +36,8 @@ JSBool gjs_define_error_class (JSContext *context,
GIEnumInfo *info,
JSObject **constructor_p,
JSObject **prototype_p);
-JSObject* gjs_lookup_error_constructor (JSContext *context,
- GIEnumInfo *info);
JSObject* gjs_lookup_error_prototype (JSContext *context,
GIEnumInfo *info);
-JSClass* gjs_lookup_error_class (JSContext *context,
- GIEnumInfo *info);
GError* gjs_gerror_from_error (JSContext *context,
JSObject *obj);
JSObject* gjs_error_from_gerror (JSContext *context,
diff --git a/gi/union.c b/gi/union.c
index ba811d1..f87a2b0 100644
--- a/gi/union.c
+++ b/gi/union.c
@@ -334,26 +334,6 @@ static JSFunctionSpec gjs_union_proto_funcs[] = {
};
JSObject*
-gjs_lookup_union_constructor(JSContext *context,
- GIUnionInfo *info)
-{
- JSObject *ns;
- JSObject *constructor;
-
- ns = gjs_lookup_namespace_object(context, (GIBaseInfo*) info);
-
- if (ns == NULL)
- return NULL;
-
- constructor = NULL;
- if (gjs_define_union_class(context, ns, info,
- &constructor, NULL))
- return constructor;
- else
- return NULL;
-}
-
-JSObject*
gjs_lookup_union_prototype(JSContext *context,
GIUnionInfo *info)
{
@@ -372,17 +352,6 @@ gjs_lookup_union_prototype(JSContext *context,
return NULL;
}
-JSClass*
-gjs_lookup_union_class(JSContext *context,
- GIUnionInfo *info)
-{
- JSObject *prototype;
-
- prototype = gjs_lookup_union_prototype(context, info);
-
- return JS_GetClass(prototype);
-}
-
JSBool
gjs_define_union_class(JSContext *context,
JSObject *in_object,
diff --git a/gi/union.h b/gi/union.h
index 81eb66d..9b78770 100644
--- a/gi/union.h
+++ b/gi/union.h
@@ -35,12 +35,8 @@ JSBool gjs_define_union_class (JSContext *context,
GIUnionInfo *info,
JSObject **constructor_p,
JSObject **prototype_p);
-JSObject* gjs_lookup_union_constructor (JSContext *context,
- GIUnionInfo *info);
JSObject* gjs_lookup_union_prototype (JSContext *context,
GIUnionInfo *info);
-JSClass* gjs_lookup_union_class (JSContext *context,
- GIUnionInfo *info);
void* gjs_c_union_from_union (JSContext *context,
JSObject *obj);
JSObject* gjs_union_from_c_union (JSContext *context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]