Code

argv: remove now unused FORMAT_DASH
authorJonas Fonseca <fonseca@diku.dk>
Wed, 31 Mar 2010 02:12:50 +0000 (22:12 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 15 Apr 2010 11:20:17 +0000 (07:20 -0400)
tig.c

diff --git a/tig.c b/tig.c
index 3c128876a7fbc383c9b1f3802e045d6f5262cd4b..cd3428cc38c29f783bdbc12800f3dd5ad26d86bf 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -142,7 +142,6 @@ static int load_refs(void);
 
 enum format_flags {
        FORMAT_ALL,             /* Perform replacement in all arguments. */
-       FORMAT_DASH,            /* Perform replacement up until "--". */
        FORMAT_NONE             /* No replacement should be performed. */
 };
 
@@ -3146,8 +3145,6 @@ format_argv(const char *dst_argv[], const char *src_argv[], enum format_flags fl
                        const char *value;
 
                        if (!next || noreplace) {
-                               if (flags == FORMAT_DASH && !strcmp(arg, "--"))
-                                       noreplace = TRUE;
                                len = strlen(arg);
                                value = "";