From 16b54dd87f54d3476b9dad9ac10b5253a0820390 Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Thu, 24 Oct 2013 14:13:22 +0300 Subject: [PATCH] Phalcon\Translate is empty and not used --- ext/config.m4 | 1 - ext/config.w32 | 2 +- ext/phalcon.c | 2 -- ext/phalcon.h | 1 - ext/translate.c | 52 ------------------------------------------------- ext/translate.h | 22 --------------------- 6 files changed, 1 insertion(+), 79 deletions(-) delete mode 100644 ext/translate.c delete mode 100644 ext/translate.h diff --git a/ext/config.m4 b/ext/config.m4 index fbc60a4d749..6760c7918a5 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -299,7 +299,6 @@ di/exception.c \ di/injectionawareinterface.c \ di/service.c \ security.c \ -translate.c \ annotations/reflection.c \ annotations/annotation.c \ annotations/readerinterface.c \ diff --git a/ext/config.w32 b/ext/config.w32 index 54df99d218c..8e973ed0701 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -8,7 +8,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES("ext/phalcon/mvc/model/query", "scanner.c parser.c builder.c lang.c statusinterface.c status.c builderinterface.c", "phalcon") ADD_SOURCES("ext/phalcon/mvc/view/engine/volt", "scanner.c parser.c compiler.c", "phalcon") ADD_SOURCES("ext/phalcon/annotations", "scanner.c parser.c reflection.c annotation.c readerinterface.c exception.c collection.c adapterinterface.c adapter.c reader.c", "phalcon") - ADD_SOURCES("ext/phalcon/.", "interned-strings.c logger.c flash.c dispatcherinterface.c di.c cryptinterface.c db.c text.c debug.c tag.c filterinterface.c acl.c loader.c exception.c crypt.c filter.c dispatcher.c diinterface.c escaper.c config.c escaperinterface.c validation.c version.c flashinterface.c kernel.c security.c translate.c session.c", "phalcon") + ADD_SOURCES("ext/phalcon/.", "interned-strings.c logger.c flash.c dispatcherinterface.c di.c cryptinterface.c db.c text.c debug.c tag.c filterinterface.c acl.c loader.c exception.c crypt.c filter.c dispatcher.c diinterface.c escaper.c config.c escaperinterface.c validation.c version.c flashinterface.c kernel.c security.c session.c", "phalcon") ADD_SOURCES("ext/phalcon/cli/dispatcher", "exception.c", "phalcon") ADD_SOURCES("ext/phalcon/cli", "console.c router.c task.c dispatcher.c", "phalcon") ADD_SOURCES("ext/phalcon/cli/router", "exception.c", "phalcon") diff --git a/ext/phalcon.c b/ext/phalcon.c index e32d58adfe6..0a9a05bb246 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -205,7 +205,6 @@ zend_class_entry *phalcon_forms_elementinterface_ce; zend_class_entry *phalcon_forms_element_numeric_ce; zend_class_entry *phalcon_forms_element_password_ce; zend_class_entry *phalcon_crypt_ce; -zend_class_entry *phalcon_translate_ce; zend_class_entry *phalcon_translate_exception_ce; zend_class_entry *phalcon_translate_adapter_ce; zend_class_entry *phalcon_translate_adapterinterface_ce; @@ -601,7 +600,6 @@ static PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Forms_Element_TextArea); PHALCON_INIT(Phalcon_Crypt); - PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); PHALCON_INIT(Phalcon_Crypt_Exception); diff --git a/ext/phalcon.h b/ext/phalcon.h index 0a9a3ba64d5..64a1969c151 100644 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -230,7 +230,6 @@ #include "forms/element/password.h" #include "forms/element/textarea.h" #include "crypt.h" -#include "translate.h" #include "translate/exception.h" #include "translate/adapter/nativearray.h" #include "crypt/exception.h" diff --git a/ext/translate.c b/ext/translate.c deleted file mode 100644 index dc79769adad..00000000000 --- a/ext/translate.c +++ /dev/null @@ -1,52 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@phalconphp.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "php.h" -#include "php_phalcon.h" -#include "phalcon.h" - -#include "Zend/zend_operators.h" -#include "Zend/zend_exceptions.h" -#include "Zend/zend_interfaces.h" - -#include "kernel/main.h" -#include "kernel/memory.h" - -/** - * Phalcon\Translate - * - * Translate component allows the creation of multi-language applications using - * different adapters for translation lists. - */ - - -/** - * Phalcon\Translate initializer - */ -PHALCON_INIT_CLASS(Phalcon_Translate){ - - PHALCON_REGISTER_CLASS(Phalcon, Translate, translate, NULL, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - return SUCCESS; -} - diff --git a/ext/translate.h b/ext/translate.h deleted file mode 100644 index e1b83032e4d..00000000000 --- a/ext/translate.h +++ /dev/null @@ -1,22 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Phalcon Framework | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@phalconphp.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -extern zend_class_entry *phalcon_translate_ce; - -PHALCON_INIT_CLASS(Phalcon_Translate);