:: commit 1f0d3c0e77717d9a94b210a112ec6ece8f01151d

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-08-04 07:47

parents: 5ada0f9df5

remove code obsoleted by #39

diff --git a/src/main.c b/src/main.c
index eaef5e1..6a3185f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -94,8 +94,7 @@ static int getopt_impl(int argc, char * const argv[], const char *optstring) {
 #include "common.h"
 #include "libbz3.h"
 
-#define MODE_UNSPECIFIED 0
-#define MODE_DECODE -1
+#define MODE_DECODE 0
 #define MODE_ENCODE 1
 #define MODE_TEST 2
 
@@ -217,11 +216,6 @@ int main(int argc, char * argv[]) {
             }
         }
     }
-
-    if (mode == MODE_UNSPECIFIED) {
-        help();
-        return 0;
-    }
 #ifndef O_BINARY
     #define O_BINARY 0
 #endif
tab: 248 wrap: offon