summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-11-20 15:16:35 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-11-20 15:16:35 +0000
commit56a55db8e96720935cfb30ddd72c95a037978a3b (patch)
tree099f1d896015e528b5bf4c8fb1cb2e9e52157756
parentd3832100caff27af0f675ac2fc7566d4bdb4548a (diff)
python-efl: remove unused functions.HEADmaster
They have been added to all e* bindings but not all of them actually use these functions. python-ecore and python-edje don't so remove them from here. SVN revision: 79474
-rw-r--r--edje/edje.c_edje.pyx32
1 files changed, 0 insertions, 32 deletions
diff --git a/edje/edje.c_edje.pyx b/edje/edje.c_edje.pyx
index b6daf9a..cd7a61d 100644
--- a/edje/edje.c_edje.pyx
+++ b/edje/edje.c_edje.pyx
@@ -30,38 +30,6 @@ cdef int PY_REFCOUNT(object o):
30 cdef PyObject *obj = <PyObject *>o 30 cdef PyObject *obj = <PyObject *>o
31 return obj.ob_refcnt 31 return obj.ob_refcnt
32 32
33cdef unicode _touni(char* s):
34 return s.decode('UTF-8', 'strict')
35
36cdef unicode _ctouni(const_char_ptr s):
37 return s.decode('UTF-8', 'strict')
38
39cdef char* _fruni(s):
40 cdef char* c_string
41 if not s:
42 return NULL
43 if isinstance(s, unicode):
44 string = s.encode('UTF-8')
45 c_string = string
46 elif isinstance(s, str):
47 c_string = s
48 else:
49 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
50 return c_string
51
52cdef const_char_ptr _cfruni(s):
53 cdef const_char_ptr c_string
54 if not s:
55 return NULL
56 if isinstance(s, unicode):
57 string = s.encode('UTF-8')
58 c_string = string
59 elif isinstance(s, str):
60 c_string = s
61 else:
62 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
63 return c_string
64
65def init(): 33def init():
66 cdef int r = edje_init() 34 cdef int r = edje_init()
67 35