Remove LanguageGetMagic profile point
authorChad Horohoe <chadh@wikimedia.org>
Wed, 4 Feb 2015 18:46:02 +0000 (10:46 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 4 Feb 2015 18:46:53 +0000 (10:46 -0800)
The hook call is already captured in profiling data and this
function is too.

Change-Id: I69ad54b9a66e24a419f492238f45c46922c112eb

languages/Language.php

index fbd4f6d..d203c0f 100644 (file)
@@ -3172,9 +3172,7 @@ class Language {
                        return;
                }
                $this->mMagicHookDone = true;
-               wfProfileIn( 'LanguageGetMagic' );
                Hooks::run( 'LanguageGetMagic', array( &$this->mMagicExtensions, $this->getCode() ) );
-               wfProfileOut( 'LanguageGetMagic' );
        }
 
        /**