removed the 'items' filter, which has been deprecated a long time ago
authorFabien Potencier <fabien.potencier@gmail.com>
Sat, 18 Dec 2010 10:21:46 +0000 (11:21 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Sat, 18 Dec 2010 10:21:46 +0000 (11:21 +0100)
CHANGELOG
lib/Twig/Extension/Core.php

index c636ab0..5f1970f 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
 * 1.0.0-BETA1
 
-...
+Backward incompatibilities:
+
+ * the items filter, which has been deprecated for quite a long time now, has been removed
+
+Changes:
 
 * 0.9.10 (2010-12-16)
 
index 6bb7192..96b5192 100644 (file)
@@ -70,7 +70,6 @@ class Twig_Extension_Core extends Twig_Extension
             // iteration and runtime
             'default' => new Twig_Filter_Function('twig_default_filter'),
             'keys'    => new Twig_Filter_Function('twig_get_array_keys_filter'),
-            'items'   => new Twig_Filter_Function('twig_get_array_items_filter'),
 
             // escaping
             'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe')),
@@ -437,13 +436,6 @@ function twig_ensure_traversable($seq)
     }
 }
 
-// only for backward compatibility
-function twig_get_array_items_filter($array)
-{
-    // noop
-    return $array;
-}
-
 function twig_test_sameas($value, $test)
 {
     return $value === $test;