summaryrefslogtreecommitdiff
path: root/portato/eix/eix_utils.pyx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/eix/eix_utils.pyx15
1 files changed, 0 insertions, 15 deletions
diff --git a/portato/eix/eix_utils.pyx b/portato/eix/eix_utils.pyx
deleted file mode 100644
index 0ea9603..0000000
--- a/portato/eix/eix_utils.pyx
+++ /dev/null
@@ -1,15 +0,0 @@
-cdef char* strdup (char * other) except NULL:
- cdef size_t len
- cdef char* new
-
- if other is NULL:
- return NULL
-
- len = strlen(other)
- new = <char*>PyMem_Malloc(len+1)
-
- if new is NULL:
- raise MemoryError, "Malloc of new string copy"
- return NULL
-
- return strcpy(new, other)