summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2015-03-27 20:04:46 +0100
committerKalle Sommer Nielsen <kalle@php.net>2015-03-27 20:04:46 +0100
commit8153286efef5d0b642a4beff839257ef205c4545 (patch)
treee3a03aba66e41b46d0938575f5247bf88e5b84d5 /sapi/cli/php_cli.c
parentc64f5e333269caf0bb0d67a06f8372cc47e249bf (diff)
downloadphp-git-8153286efef5d0b642a4beff839257ef205c4545.tar.gz
Drop zend_indent() as it was never used, complete or working
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 4f3351726a..3c9c5a8475 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -77,7 +77,6 @@
#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_highlight.h"
-#include "zend_indent.h"
#include "zend_exceptions.h"
#include "php_getopt.h"
@@ -109,7 +108,6 @@ ZEND_TSRMLS_CACHE_DEFINE();
#define PHP_MODE_STANDARD 1
#define PHP_MODE_HIGHLIGHT 2
-#define PHP_MODE_INDENT 3
#define PHP_MODE_LINT 4
#define PHP_MODE_STRIP 5
#define PHP_MODE_CLI_DIRECT 6
@@ -770,16 +768,6 @@ static int do_cli(int argc, char **argv) /* {{{ */
behavior=PHP_MODE_LINT;
break;
-#if 0 /* not yet operational, see also below ... */
- case '': /* generate indented source mode*/
- if (behavior == PHP_MODE_CLI_DIRECT || behavior == PHP_MODE_PROCESS_STDIN) {
- param_error = "Source indenting only works for files.\n";
- break;
- }
- behavior=PHP_MODE_INDENT;
- break;
-#endif
-
case 'q': /* do not generate HTTP headers */
/* This is default so NOP */
break;
@@ -1005,15 +993,6 @@ static int do_cli(int argc, char **argv) /* {{{ */
goto out;
}
break;
-#if 0
- /* Zeev might want to do something with this one day */
- case PHP_MODE_INDENT:
- open_file_for_scanning(&file_handle);
- zend_indent();
- zend_file_handle_dtor(file_handle.handle);
- goto out;
- break;
-#endif
case PHP_MODE_CLI_DIRECT:
cli_register_file_handles();
if (zend_eval_string_ex(exec_direct, NULL, "Command line code", 1) == FAILURE) {