Drop ancient PHP4 wrapper for cloning, completely unused
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 13 Feb 2010 02:29:59 +0000 (02:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 13 Feb 2010 02:29:59 +0000 (02:29 +0000)
includes/GlobalFunctions.php

index 5ff9629..d6e0f5b 100644 (file)
@@ -261,15 +261,6 @@ function wfArrayDiff2_cmp( $a, $b ) {
        }
 }
 
-/**
- * Wrapper for clone(), for compatibility with PHP4-friendly extensions.
- * PHP 5 won't let you declare a 'clone' function, even conditionally,
- * so it has to be a wrapper with a different name.
- */
-function wfClone( $object ) {
-       return clone( $object );
-}
-
 /**
  * Seed Mersenne Twister
  * No-op for compatibility; only necessary in PHP < 4.2.0