Remove unused error codes
authorEric Biggers <ebiggers3@gmail.com>
Sun, 25 May 2014 18:47:10 +0000 (13:47 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 25 May 2014 19:48:17 +0000 (14:48 -0500)
include/wimlib.h
src/util.c

index ff45e32bc7cc9faead3633fde8e9d035cf65a321..da8d4262b15d9ba5d4a9588965236c32ec1a77b7 100644 (file)
@@ -2035,11 +2035,7 @@ enum wimlib_error_code {
        WIMLIB_ERR_SUCCESS                            = 0,
        WIMLIB_ERR_ALREADY_LOCKED                     = 1,
        WIMLIB_ERR_DECOMPRESSION                      = 2,
-       WIMLIB_ERR_DELETE_STAGING_DIR                 = 3,
-       WIMLIB_ERR_FILESYSTEM_DAEMON_CRASHED          = 4,
-       WIMLIB_ERR_FORK                               = 5,
        WIMLIB_ERR_FUSE                               = 6,
-       WIMLIB_ERR_FUSERMOUNT                         = 7,
        WIMLIB_ERR_GLOB_HAD_NO_MATCHES                = 8,
        WIMLIB_ERR_ICONV_NOT_AVAILABLE                = 9,
        WIMLIB_ERR_IMAGE_COUNT                        = 10,
@@ -2061,7 +2057,6 @@ enum wimlib_error_code {
        WIMLIB_ERR_INVALID_PIPABLE_WIM                = 26,
        WIMLIB_ERR_INVALID_REPARSE_DATA               = 27,
        WIMLIB_ERR_INVALID_RESOURCE_HASH              = 28,
-       WIMLIB_ERR_INVALID_UNMOUNT_MESSAGE            = 29,
        WIMLIB_ERR_INVALID_UTF16_STRING               = 30,
        WIMLIB_ERR_INVALID_UTF8_STRING                = 31,
        WIMLIB_ERR_IS_DIRECTORY                       = 32,
@@ -2085,7 +2080,6 @@ enum wimlib_error_code {
        WIMLIB_ERR_READ                               = 50,
        WIMLIB_ERR_READLINK                           = 51,
        WIMLIB_ERR_RENAME                             = 52,
-       WIMLIB_ERR_REOPEN                             = 53,
        WIMLIB_ERR_REPARSE_POINT_FIXUP_FAILED         = 54,
        WIMLIB_ERR_RESOURCE_NOT_FOUND                 = 55,
        WIMLIB_ERR_RESOURCE_ORDER                     = 56,
@@ -2096,13 +2090,11 @@ enum wimlib_error_code {
        WIMLIB_ERR_SET_TIMESTAMPS                     = 61,
        WIMLIB_ERR_SPLIT_INVALID                      = 62,
        WIMLIB_ERR_STAT                               = 63,
-       WIMLIB_ERR_TIMEOUT                            = 64,
        WIMLIB_ERR_UNEXPECTED_END_OF_FILE             = 65,
        WIMLIB_ERR_UNICODE_STRING_NOT_REPRESENTABLE   = 66,
        WIMLIB_ERR_UNKNOWN_VERSION                    = 67,
        WIMLIB_ERR_UNSUPPORTED                        = 68,
        WIMLIB_ERR_UNSUPPORTED_FILE                   = 69,
-       WIMLIB_ERR_VOLUME_LACKS_FEATURES              = 70,
        WIMLIB_ERR_WIM_IS_READONLY                    = 71,
        WIMLIB_ERR_WRITE                              = 72,
        WIMLIB_ERR_XML                                = 73,
index f6d3253d790f3d7af898ee3e18d66d631882ec86..fceae14b026b4aa196547dc0f815dad22622f668 100644 (file)
@@ -193,17 +193,8 @@ static const tchar *error_strings[] = {
                = T("The WIM is already locked for writing"),
        [WIMLIB_ERR_DECOMPRESSION]
                = T("Failed to decompress compressed data"),
-       [WIMLIB_ERR_DELETE_STAGING_DIR]
-               = T("Failed to delete staging directory"),
-       [WIMLIB_ERR_FILESYSTEM_DAEMON_CRASHED]
-               = T("The process servicing the mounted WIM has crashed"),
-       [WIMLIB_ERR_FORK]
-               = T("Failed to fork another process"),
        [WIMLIB_ERR_FUSE]
                = T("An error was returned by fuse_main()"),
-       [WIMLIB_ERR_FUSERMOUNT]
-               = T("Could not execute the `fusermount' program, or it exited "
-                       "with a failure status"),
        [WIMLIB_ERR_GLOB_HAD_NO_MATCHES]
                = T("The provided file glob did not match any files"),
        [WIMLIB_ERR_ICONV_NOT_AVAILABLE]
@@ -232,6 +223,8 @@ static const tchar *error_strings[] = {
                = T("The WIM's integrity table is invalid"),
        [WIMLIB_ERR_INVALID_LOOKUP_TABLE_ENTRY]
                = T("An entry in the WIM's lookup table is invalid"),
+       [WIMLIB_ERR_INVALID_METADATA_RESOURCE]
+               = T("The metadata resource is invalid"),
        [WIMLIB_ERR_INVALID_MULTIBYTE_STRING]
                = T("A string was not valid in the current locale's character encoding"),
        [WIMLIB_ERR_INVALID_OVERLAY]
@@ -246,11 +239,6 @@ static const tchar *error_strings[] = {
                = T("The reparse data of a reparse point was invalid"),
        [WIMLIB_ERR_INVALID_RESOURCE_HASH]
                = T("The SHA1 message digest of a WIM resource did not match the expected value"),
-       [WIMLIB_ERR_INVALID_METADATA_RESOURCE]
-               = T("The metadata resource is invalid"),
-       [WIMLIB_ERR_INVALID_UNMOUNT_MESSAGE]
-               = T("The version of wimlib that has mounted a WIM image is incompatible with the "
-                 "version being used to unmount it"),
        [WIMLIB_ERR_INVALID_UTF8_STRING]
                = T("A string provided as input by the user was not a valid UTF-8 string"),
        [WIMLIB_ERR_INVALID_UTF16_STRING]
@@ -277,12 +265,12 @@ static const tchar *error_strings[] = {
                = T("Expected a directory"),
        [WIMLIB_ERR_NOTEMPTY]
                = T("Directory was not empty"),
-       [WIMLIB_ERR_NOT_A_WIM_FILE]
-               = T("The file did not begin with the magic characters that "
-                       "identify a WIM file"),
        [WIMLIB_ERR_NOT_A_REGULAR_FILE]
                = T("One of the specified paths to extract did not "
                    "correspond to a regular file"),
+       [WIMLIB_ERR_NOT_A_WIM_FILE]
+               = T("The file did not begin with the magic characters that "
+                       "identify a WIM file"),
        [WIMLIB_ERR_NO_FILENAME]
                = T("The WIM is not identified with a filename"),
        [WIMLIB_ERR_NOT_PIPABLE]
@@ -322,8 +310,6 @@ static const tchar *error_strings[] = {
                = T("The WIM is part of an invalid split WIM"),
        [WIMLIB_ERR_STAT]
                = T("Could not read the metadata for a file or directory"),
-       [WIMLIB_ERR_TIMEOUT]
-               = T("Timed out while waiting for a message to arrive from another process"),
        [WIMLIB_ERR_UNEXPECTED_END_OF_FILE]
                = T("Unexpectedly reached the end of the file"),
        [WIMLIB_ERR_UNICODE_STRING_NOT_REPRESENTABLE]
@@ -334,8 +320,6 @@ static const tchar *error_strings[] = {
                = T("The requested operation is unsupported"),
        [WIMLIB_ERR_UNSUPPORTED_FILE]
                = T("A file in the directory tree to archive was not of a supported type"),
-       [WIMLIB_ERR_VOLUME_LACKS_FEATURES]
-               = T("The volume did not support a feature necessary to complete the operation"),
        [WIMLIB_ERR_WIM_IS_READONLY]
                = T("The WIM is read-only (file permissions, header flag, or split WIM)"),
        [WIMLIB_ERR_WRITE]