From dda983eaeb98f37dbe5420b34d53d9b74fed5130 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Sep 2014 22:57:59 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libgamma_error.py | 10 ---------- src/libgamma_native_error.pyx | 15 --------------- src/libgamma_native_error.w32.pyx | 15 --------------- 3 files changed, 40 deletions(-) diff --git a/src/libgamma_error.py b/src/libgamma_error.py index 0e742da..b9530fa 100644 --- a/src/libgamma_error.py +++ b/src/libgamma_error.py @@ -109,16 +109,6 @@ def perror(name : str, error_code : int): libgamma_native_perror(name, error_code) -def get_errno() -> int: - ''' - Get the current value, for the current thread, of `errno`. - - @return The value `errno`. - ''' - from libgamma_native_error import libgamma_native_get_errno - return libgamma_native_get_errno() - - def name_of_error(value : int) -> str: ''' Returns the name of the definition associated with a `libgamma` error code. diff --git a/src/libgamma_native_error.pyx b/src/libgamma_native_error.pyx index f1b423c..8696d10 100644 --- a/src/libgamma_native_error.pyx +++ b/src/libgamma_native_error.pyx @@ -22,12 +22,6 @@ cimport cython from posix.unistd cimport gid_t -cdef extern int errno -''' -`errno` of course. -''' - - cdef extern gid_t libgamma_group_gid ''' Group that the user needs to be a member of if @@ -83,15 +77,6 @@ Return the value of a `libgamma` error definition refered to by name. -def libgamma_native_get_errno() -> int: - ''' - Get the current value, for the current thread, of `errno`. - - @return The value `errno`. - ''' - return int(errno) - - def libgamma_native_get_group_gid() -> int: ''' Getter. diff --git a/src/libgamma_native_error.w32.pyx b/src/libgamma_native_error.w32.pyx index 10a510c..4d5aaac 100644 --- a/src/libgamma_native_error.w32.pyx +++ b/src/libgamma_native_error.w32.pyx @@ -20,12 +20,6 @@ along with this library. If not, see . cimport cython -cdef extern int errno -''' -`errno` of course. -''' - - cdef extern short libgamma_group_gid ''' Group that the user needs to be a member of if @@ -81,15 +75,6 @@ Return the value of a `libgamma` error definition refered to by name. -def libgamma_native_get_errno() -> int: - ''' - Get the current value, for the current thread, of `errno`. - - @return The value `errno`. - ''' - return int(errno) - - def libgamma_native_get_group_gid() -> int: ''' Getter. -- cgit v1.2.3-70-g09d2