[Pkg-telepathy-commits] [telepathy-glib-1] 36/212: Also remove unused move_into_gvalue

Simon McVittie smcv at debian.org
Wed May 14 12:08:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-glib-1.

commit 496e1dae39191e9cc28379a83018d2910603d414
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Mar 18 14:16:38 2014 +0000

    Also remove unused move_into_gvalue
---
 tools/libglibcodegen.py | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py
index 11904a7..5cd0058 100644
--- a/tools/libglibcodegen.py
+++ b/tools/libglibcodegen.py
@@ -118,28 +118,6 @@ def type_to_gtype(s):
     # we just don't know ..
     raise Exception("don't know the GType for " + s)
 
-def move_into_gvalue(gvaluep, gtype, marshaller, name):
-    if gtype == 'G_TYPE_STRING':
-        return 'g_value_take_string (%s, %s);' % (gvaluep, name)
-    elif marshaller == 'BOXED':
-        return 'g_value_take_boxed (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_UCHAR':
-        return 'g_value_set_uchar (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_BOOLEAN':
-        return 'g_value_set_boolean (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_INT':
-        return 'g_value_set_int (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_UINT':
-        return 'g_value_set_uint (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_INT64':
-        return 'g_value_set_int (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_UINT64':
-        return 'g_value_set_uint64 (%s, %s);' % (gvaluep, name)
-    elif gtype == 'G_TYPE_DOUBLE':
-        return 'g_value_set_double (%s, %s);' % (gvaluep, name)
-    else:
-        raise AssertionError("Don't know how to put %s in a GValue" % gtype)
-
 def value_getter(gtype, marshaller):
     if marshaller == 'BOXED':
         return 'g_value_get_boxed'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-glib-1.git



More information about the Pkg-telepathy-commits mailing list