[misc] Remove redundant error codes.
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 5 Apr 2009 17:54:49 +0000 (19:54 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 5 Apr 2009 17:54:49 +0000 (19:54 +0200)
Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

include/libvscmisc/types.h
misc/error.c

index 3a7f3cb..a56e6a0 100644 (file)
@@ -47,12 +47,8 @@ enum VscErrorCode {
        VSC__ERROR_CODE__LIBVIRT_ERROR,
        VSC__ERROR_CODE__INVALID_ARGUMENT,
        VSC__ERROR_CODE__INVALID_CALL,
-       VSC__ERROR_CODE__INVALID_UUID_STRING,
-       VSC__ERROR_CODE__INVALID_IPV4_STRING,
-       VSC__ERROR_CODE__INVALID_HOST_TYPE_STRING,
        VSC__ERROR_CODE__NOT_INITIALIZED,
        VSC__ERROR_CODE__NOT_IMPLEMENTED_YET,
-       VSC__ERROR_CODE__ALREADY_KNOWN,
        VSC__ERROR_CODE__ERRNO,
        VSC__ERROR_CODE__TRACE,
 };
index 8be47a0..f6c80f4 100644 (file)
@@ -99,24 +99,12 @@ vsc_error_string (enum VscErrorCode code)
        case VSC__ERROR_CODE__INVALID_CALL:
                return "Invalid call";
 
-       case VSC__ERROR_CODE__INVALID_UUID_STRING:
-               return "Invalid UUID string";
-
-       case VSC__ERROR_CODE__INVALID_IPV4_STRING:
-               return "Invalid IPv4 string";
-
-       case VSC__ERROR_CODE__INVALID_HOST_TYPE_STRING:
-               return "Invalid host type string";
-
        case VSC__ERROR_CODE__NOT_INITIALIZED:
                return "Not initialized";
 
        case VSC__ERROR_CODE__NOT_IMPLEMENTED_YET:
                return "Not implemented yet";
 
-       case VSC__ERROR_CODE__ALREADY_KNOWN:
-               return "Already known";
-
        case VSC__ERROR_CODE__ERRNO:
                return "errno";