From e1cda59e7558b7840a71fed309989b36acda3eb2 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 18 Jan 2013 13:58:16 +0800 Subject: [PATCH] Remove unnecessary includes --- configs/ini.c | 2 +- configs/simple.c | 2 +- requests/http.c | 2 +- requests/simple.c | 2 +- response/cli.c | 2 +- response/http.c | 2 +- routes/interface.c | 2 +- routes/map.c | 2 +- routes/regex.c | 2 +- routes/rewrite.c | 2 +- routes/simple.c | 2 +- routes/static.c | 2 +- routes/supervar.c | 2 +- views/interface.c | 2 +- views/simple.c | 2 +- yaf_action.c | 2 +- yaf_application.c | 2 +- yaf_bootstrap.c | 2 +- yaf_config.c | 2 +- yaf_controller.c | 2 +- yaf_dispatcher.c | 2 +- yaf_exception.c | 2 +- yaf_loader.c | 2 +- yaf_plugin.c | 2 +- yaf_registry.c | 2 +- yaf_request.c | 2 +- yaf_response.c | 2 +- yaf_response.h | 2 +- yaf_router.c | 8 +------- yaf_session.c | 2 +- yaf_view.c | 2 +- 31 files changed, 31 insertions(+), 37 deletions(-) diff --git a/configs/ini.c b/configs/ini.c index d521685d..bdb74b08 100644 --- a/configs/ini.c +++ b/configs/ini.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ini.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: ini.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/configs/simple.c b/configs/simple.c index b2e71e5d..e919ea7b 100644 --- a/configs/simple.c +++ b/configs/simple.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: simple.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: simple.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/requests/http.c b/requests/http.c index 10c1e380..22d0dbb8 100644 --- a/requests/http.c +++ b/requests/http.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: http.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/requests/simple.c b/requests/simple.c index 491ec8b7..82e48766 100644 --- a/requests/simple.c +++ b/requests/simple.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: simple.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: simple.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/response/cli.c b/response/cli.c index eebf555d..36d3b040 100644 --- a/response/cli.c +++ b/response/cli.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cli.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: cli.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/response/http.c b/response/http.c index d8a60d61..239de03a 100644 --- a/response/http.c +++ b/response/http.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: http.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/interface.c b/routes/interface.c index 00d992b4..0d16ff12 100644 --- a/routes/interface.c +++ b/routes/interface.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interface.c 329154 2013-01-16 04:02:46Z laruence $ */ +/* $Id: interface.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/map.c b/routes/map.c index 3ec1a5c7..be75b797 100644 --- a/routes/map.c +++ b/routes/map.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: map.c 329002 2013-01-07 12:55:53Z laruence $*/ +/* $Id: map.c 329197 2013-01-18 05:55:37Z laruence $*/ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/regex.c b/routes/regex.c index efb7753d..345a8705 100644 --- a/routes/regex.c +++ b/routes/regex.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: regex.c 329154 2013-01-16 04:02:46Z laruence $ */ +/* $Id: regex.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/rewrite.c b/routes/rewrite.c index 95be148c..acc769ca 100644 --- a/routes/rewrite.c +++ b/routes/rewrite.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: rewrite.c 329133 2013-01-14 07:24:17Z laruence $ */ +/* $Id: rewrite.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/simple.c b/routes/simple.c index 4ad23eea..1ea4f159 100644 --- a/routes/simple.c +++ b/routes/simple.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: simple.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: simple.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/static.c b/routes/static.c index 7910b568..316a1b00 100644 --- a/routes/static.c +++ b/routes/static.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: static.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: static.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/routes/supervar.c b/routes/supervar.c index 19a32424..4baf17ef 100644 --- a/routes/supervar.c +++ b/routes/supervar.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: supervar.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: supervar.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/views/interface.c b/views/interface.c index 5cfc35d5..a0644f63 100644 --- a/views/interface.c +++ b/views/interface.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interface.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: interface.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/views/simple.c b/views/simple.c index b8e44f4d..0f9432b8 100644 --- a/views/simple.c +++ b/views/simple.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: simple.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: simple.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_action.c b/yaf_action.c index 3d89a9dd..71b97fda 100644 --- a/yaf_action.c +++ b/yaf_action.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_action.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_action.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_application.c b/yaf_application.c index 70c63a7e..bbe91f14 100644 --- a/yaf_application.c +++ b/yaf_application.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_application.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_application.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_bootstrap.c b/yaf_bootstrap.c index baa15711..7aaa523d 100644 --- a/yaf_bootstrap.c +++ b/yaf_bootstrap.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_bootstrap.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_bootstrap.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_config.c b/yaf_config.c index 43113625..f91a15da 100644 --- a/yaf_config.c +++ b/yaf_config.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_config.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_config.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_controller.c b/yaf_controller.c index 8a09d5d6..9e4acc44 100644 --- a/yaf_controller.c +++ b/yaf_controller.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_controller.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_controller.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_dispatcher.c b/yaf_dispatcher.c index 6bd69784..543fd93a 100644 --- a/yaf_dispatcher.c +++ b/yaf_dispatcher.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_dispatcher.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_dispatcher.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_exception.c b/yaf_exception.c index c9b92b69..5e32a37d 100644 --- a/yaf_exception.c +++ b/yaf_exception.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_exception.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_exception.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_loader.c b/yaf_loader.c index 59cb602e..d8e18eb6 100644 --- a/yaf_loader.c +++ b/yaf_loader.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_loader.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_loader.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_plugin.c b/yaf_plugin.c index 34e82cd7..543aa09e 100644 --- a/yaf_plugin.c +++ b/yaf_plugin.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_plugin.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_plugin.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_registry.c b/yaf_registry.c index d4752aa0..d081f92e 100644 --- a/yaf_registry.c +++ b/yaf_registry.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_registry.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_registry.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_request.c b/yaf_request.c index df02ae8a..f9704b3a 100644 --- a/yaf_request.c +++ b/yaf_request.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_request.c 329002 2013-01-07 12:55:53Z laruence $*/ +/* $Id: yaf_request.c 329197 2013-01-18 05:55:37Z laruence $*/ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_response.c b/yaf_response.c index cf560eea..e35c45db 100644 --- a/yaf_response.c +++ b/yaf_response.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_response.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_response.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_response.h b/yaf_response.h index 8f2a2692..05b14a53 100644 --- a/yaf_response.h +++ b/yaf_response.h @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_response.h 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_response.h 329197 2013-01-18 05:55:37Z laruence $ */ #ifndef PHP_YAF_RESPONSE_H #define PHP_YAF_RESPONSE_H diff --git a/yaf_router.c b/yaf_router.c index a148f4d0..ae0841fd 100644 --- a/yaf_router.c +++ b/yaf_router.c @@ -14,24 +14,18 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_router.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_router.c 329199 2013-01-18 05:59:44Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "php.h" -#include "php_ini.h" -#include "main/SAPI.h" -#include "Zend/zend_alloc.h" #include "Zend/zend_interfaces.h" -#include "ext/pcre/php_pcre.h" #include "php_yaf.h" #include "yaf_namespace.h" -#include "yaf_application.h" #include "yaf_exception.h" -#include "yaf_request.h" #include "yaf_router.h" #include "yaf_config.h" diff --git a/yaf_session.c b/yaf_session.c index 2bc80b28..d33de0b4 100644 --- a/yaf_session.c +++ b/yaf_session.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_session.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_session.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/yaf_view.c b/yaf_view.c index 4ccc4e63..16e701c9 100644 --- a/yaf_view.c +++ b/yaf_view.c @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: yaf_view.c 329002 2013-01-07 12:55:53Z laruence $ */ +/* $Id: yaf_view.c 329197 2013-01-18 05:55:37Z laruence $ */ #ifdef HAVE_CONFIG_H #include "config.h"