SectionProfiler: Remove $profileOutCallback
authorKevin Israel <pleasestand@live.com>
Mon, 25 Jul 2016 03:02:49 +0000 (23:02 -0400)
committerKevin Israel <pleasestand@live.com>
Mon, 25 Jul 2016 13:23:29 +0000 (09:23 -0400)
Unused since 626aede99bf83733.

Change-Id: I12c0d7900cd81d8b33b1a5a8dbe866ddd9664083

includes/profiler/SectionProfiler.php

index 04ec841..65ac6e6 100644 (file)
@@ -46,8 +46,6 @@ class SectionProfiler {
        protected $collateOnly = true;
        /** @var array Cache of a standard broken collation entry */
        protected $errorEntry;
-       /** @var callable Cache of a profile out callback */
-       protected $profileOutCallback;
 
        /**
         * @param array $params
@@ -55,9 +53,6 @@ class SectionProfiler {
        public function __construct( array $params = [] ) {
                $this->errorEntry = $this->getErrorEntry();
                $this->collateOnly = empty( $params['trace'] );
-               $this->profileOutCallback = function ( $profiler, $section ) {
-                       $profiler->profileOutInternal( $section );
-               };
        }
 
        /**