]> granicus.if.org Git - php/commitdiff
Drop some pieces of commented-out code
authorNikita Popov <nikic@php.net>
Sun, 4 Sep 2016 10:43:29 +0000 (12:43 +0200)
committerNikita Popov <nikic@php.net>
Sun, 4 Sep 2016 10:56:06 +0000 (12:56 +0200)
Zend/zend_interfaces.c
Zend/zend_operators.h
ext/pgsql/pgsql.c
ext/spl/php_spl.h
ext/standard/array.c
ext/standard/dir.c
ext/standard/strnatcmp.c

index 2dadb39b177b3326b362fbbf74639572e3e1a168..db53a266fb1016411f80df6573cac3f195247229 100644 (file)
@@ -191,16 +191,6 @@ ZEND_API zval *zend_user_it_get_current_data(zend_object_iterator *_iter)
 }
 /* }}} */
 
-/* {{{ zend_user_it_get_current_key_default */
-#if 0
-static int zend_user_it_get_current_key_default(zend_object_iterator *_iter, char **str_key, uint *str_key_len, ulong *int_key)
-{
-       *int_key = _iter->index;
-       return HASH_KEY_IS_LONG;
-}
-#endif
-/* }}} */
-
 /* {{{ zend_user_it_get_current_key */
 ZEND_API void zend_user_it_get_current_key(zend_object_iterator *_iter, zval *key)
 {
@@ -394,15 +384,6 @@ static int zend_implement_iterator(zend_class_entry *interface, zend_class_entry
 /* {{{ zend_implement_arrayaccess */
 static int zend_implement_arrayaccess(zend_class_entry *interface, zend_class_entry *class_type)
 {
-#if 0
-       /* get ht from ce */
-       if (ht->read_dimension != zend_std_read_dimension
-       ||  ht->write_dimension != zend_std_write_dimension
-       ||  ht->has_dimension != zend_std_has_dimension
-       ||  ht->unset_dimension != zend_std_unset_dimension) {
-               return FAILURE;
-       }
-#endif
        return SUCCESS;
 }
 /* }}}*/
index 068266ebd676511bae9fc6bc56e87a9379799520..ca772c0de0f9080413fc50f8b2f99e02efc1fb53 100644 (file)
 #include "zend_strtod.h"
 #include "zend_multiply.h"
 
-#if 0&&HAVE_BCMATH
-#include "ext/bcmath/libbcmath/src/bcmath.h"
-#endif
-
 #define LONG_SIGN_MASK (((zend_long)1) << (8*sizeof(zend_long)-1))
 
 BEGIN_EXTERN_C()
index 1aa3855af037e101d8e7767a898762ac30d9cb85..32f583bd766c3d87068c5e73f5c10ac7fa83e91f 100644 (file)
@@ -1510,20 +1510,6 @@ err:
 }
 /* }}} */
 
-#if 0
-/* {{{ php_pgsql_get_default_link
- */
-static int php_pgsql_get_default_link(INTERNAL_FUNCTION_PARAMETERS)
-{
-       if (PGG(default_link)==-1) { /* no link opened yet, implicitly open one */
-               ht = 0;
-               php_pgsql_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
-       }
-       return PGG(default_link);
-}
-/* }}} */
-#endif
-
 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)
    Open a PostgreSQL connection */
 PHP_FUNCTION(pg_connect)
index b936cfe45bae7e60980b7fc2dedc264e56b913ef..890945c68721be4bda156bc1ce3cc1c297d6d905 100644 (file)
 
 #define PHP_SPL_VERSION PHP_VERSION
 
-#if 0
-#define SPL_DEBUG(x)   x
-#else
-#define SPL_DEBUG(x)
-#endif
-
 extern zend_module_entry spl_module_entry;
 #define phpext_spl_ptr &spl_module_entry
 
index af9734d3d7b919702d6162611c38de449691d068..1225852be0c952b6ae6354fa23be659e179efef4 100644 (file)
@@ -1841,12 +1841,6 @@ PHP_FUNCTION(extract)
        }
 
        symbol_table = zend_rebuild_symbol_table();
-#if 0
-       if (!symbol_table) {
-               php_error_docref(NULL, E_WARNING, "failed to build symbol table");
-               return;
-       }
-#endif
 
        /* The array might be stored in a local variable that will be overwritten. To avoid losing the
         * reference in that case we work on a copy. */
index 222c993c657711cc4beff47770f549d1c6ab9705..de7e01ffea84aac1ce781355e9be766f3f4913df 100644 (file)
@@ -63,15 +63,6 @@ int dir_globals_id;
 php_dir_globals dir_globals;
 #endif
 
-#if 0
-typedef struct {
-       int id;
-       DIR *dir;
-} php_dir;
-
-static int le_dirp;
-#endif
-
 static zend_class_entry *dir_class_entry_ptr;
 
 #define FETCH_DIRP() \
index a272be8a295b523c6458e798fa73d641fdf2a3de..ac8d2a2e917f41f6f7d4fe8949840b5c5fbc2106 100644 (file)
 #include "php.h"
 #include "php_string.h"
 
-#if defined(__GNUC__)
-#  define UNUSED __attribute__((__unused__))
-#else
-#  define UNUSED
-#endif
-
-#if 0
-static char const *version UNUSED =
-    "$Id$";
-#endif
 /* {{{ compare_right
  */
 static int