Browse Source

All PEDANTIC_ARGS does is set a macro that's never used.

Rob Landley 2 years ago
parent
commit
a6e0c86f77
2 changed files with 0 additions and 12 deletions
  1. 0 6
      Config.in
  2. 0 6
      lib/toyflags.h

+ 0 - 6
Config.in

@@ -136,12 +136,6 @@ config TOYBOX_DEBUG
 	  Enable extra checks for debugging purposes. All of them catch
 	  Enable extra checks for debugging purposes. All of them catch
 	  things that can only go wrong at development time, not runtime.
 	  things that can only go wrong at development time, not runtime.
 
 
-config TOYBOX_PEDANTIC_ARGS
-	bool "Pedantic argument checking"
-	default n
-	help
-	  Check arguments for commands that have no arguments.
-
 config TOYBOX_UID_SYS
 config TOYBOX_UID_SYS
 	int "First system UID"
 	int "First system UID"
 	default 100
 	default 100

+ 0 - 6
lib/toyflags.h

@@ -37,9 +37,3 @@
 
 
 // Error code to return if argument parsing fails (default 1)
 // Error code to return if argument parsing fails (default 1)
 #define TOYFLAG_ARGFAIL(x) (x<<24)
 #define TOYFLAG_ARGFAIL(x) (x<<24)
-
-#if CFG_TOYBOX_PEDANTIC_ARGS
-#define NO_ARGS ">0"
-#else
-#define NO_ARGS 0
-#endif