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
commit58612459f0fb3a9f024c657e51491685d2601b75 (patch)
tree953ab36b2f6591a2c286a943e4aa093e92422349
parent5fabee3c944e09d652d856b08d68dd6c4f13caed (diff)
python-efl: remove unused functions.
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--ecore/ecore.c_ecore.pyx32
1 files changed, 0 insertions, 32 deletions
diff --git a/ecore/ecore.c_ecore.pyx b/ecore/ecore.c_ecore.pyx
index e81f560..f8cdfae 100644
--- a/ecore/ecore.c_ecore.pyx
+++ b/ecore/ecore.c_ecore.pyx
@@ -32,38 +32,6 @@ cdef int PY_REFCOUNT(object o):
32 cdef PyObject *obj = <PyObject *>o 32 cdef PyObject *obj = <PyObject *>o
33 return obj.ob_refcnt 33 return obj.ob_refcnt
34 34
35cdef unicode _touni(char* s):
36 return s.decode('UTF-8', 'strict')
37
38cdef unicode _ctouni(const_char_ptr s):
39 return s.decode('UTF-8', 'strict')
40
41cdef char* _fruni(s):
42 cdef char* c_string
43 if not s:
44 return NULL
45 if isinstance(s, unicode):
46 string = s.encode('UTF-8')
47 c_string = string
48 elif isinstance(s, str):
49 c_string = s
50 else:
51 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
52 return c_string
53
54cdef const_char_ptr _cfruni(s):
55 cdef const_char_ptr c_string
56 if not s:
57 return NULL
58 if isinstance(s, unicode):
59 string = s.encode('UTF-8')
60 c_string = string
61 elif isinstance(s, str):
62 c_string = s
63 else:
64 raise TypeError("Expected str or unicode object, got %s" % (type(s).__name__))
65 return c_string
66
67def init(): 35def init():
68 r = ecore_init() 36 r = ecore_init()
69 global _ecore_events_registered 37 global _ecore_events_registered