Remove $logType and $visible, leftover from before output refactoring
authorChad Horohoe <chadh@wikimedia.org>
Tue, 9 Dec 2014 19:06:10 +0000 (11:06 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 9 Dec 2014 19:10:42 +0000 (19:10 +0000)
Change-Id: I4d320b27471608d38b65c14c132d45c6ce3e94a8

includes/profiler/ProfilerXhprof.php

index 5603aa5..a40c44a 100644 (file)
@@ -70,33 +70,12 @@ class ProfilerXhprof extends Profiler {
         */
        protected $sprofiler;
 
-       /**
-        * Type of report to send when logData() is called.
-        * @var string $logType
-        */
-       protected $logType;
-
-       /**
-        * Should profile report sent to in page content be visible?
-        * @var bool $visible
-        */
-       protected $visible;
-
        /**
         * @param array $params
         * @see Xhprof::__construct()
         */
        public function __construct( array $params = array() ) {
-               $params = array_merge(
-                       array(
-                               'log' => 'text',
-                               'visible' => false
-                       ),
-                       $params
-               );
                parent::__construct( $params );
-               $this->logType = $params['log'];
-               $this->visible = $params['visible'];
                $this->xhprof = new Xhprof( $params );
                $this->sprofiler = new SectionProfiler();
        }