Removed useless "use" clause from closure
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 3 Dec 2014 23:31:17 +0000 (15:31 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 3 Dec 2014 23:34:00 +0000 (23:34 +0000)
Change-Id: Ie2e0328548b185e77b919c0b8bd18a5005d94037

includes/profiler/ProfilerXhprof.php

index 88196db..d178ce6 100644 (file)
@@ -130,7 +130,7 @@ class ProfilerXhprof extends Profiler {
 
                if ( $exists ) {
                        xhprof_frame_begin( $section );
-                       return new ScopedCallback( function() use ( $section ) {
+                       return new ScopedCallback( function() {
                                xhprof_frame_end();
                        } );
                }