]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove duplicate code (#295)
authortanyaionova <isaqtm@gmail.com>
Wed, 26 Jun 2019 22:01:42 +0000 (01:01 +0300)
committertanyaionova <isaqtm@gmail.com>
Wed, 26 Jun 2019 22:01:42 +0000 (01:01 +0300)
These three lines are exact copy of 4555-4557.
As opener is not changed in between, we can delete these

src/nnn.c

index ffb7980e8721883e798b018472076a1a55c9ce5f..17e1076c57cc2ba4d298dbbf03e61bd2094d89dd 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4637,10 +4637,6 @@ int main(int argc, char *argv[])
        }
 #endif
 
-       /* Get custom opener, if set */
-       opener = xgetenv(env_cfg[NNN_OPENER], utils[OPENER]);
-       DPRINTF_S(opener);
-
        /* Set nnn nesting level, idletimeout used as tmp var */
        idletimeout = xatoi(getenv(env_cfg[NNNLVL]));
        setenv(env_cfg[NNNLVL], xitoa(++idletimeout), 1);