Removed dead code

This commit is contained in:
Laurent Destailleur 2024-04-09 03:50:46 +02:00
parent b172640ae5
commit 46e21a0b2d
3 changed files with 0 additions and 61 deletions

View File

@ -1,57 +0,0 @@
<?php
/* Copyright (C) 2023 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* \file htdocs/debugbar/class/DataCollector/DolMessagesCollector.php
* \brief Class for debugbar collection
* \ingroup debugbar
*/
use DebugBar\DataCollector\MessagesCollector;
/**
* DolMessagesCollector class
*/
class DolMessagesCollector extends MessagesCollector
{
/**
* Return widget settings
*
* @return array Array
*/
public function getWidgets()
{
global $langs;
$title = $langs->transnoentities('Messages');
$name = $this->getName();
return array(
"$title" => array(
"icon" => "list-alt",
"widget" => "PhpDebugBar.Widgets.MessagesWidget",
"map" => "$name.messages",
"default" => "[]"
),
"$title:badge" => array(
"map" => "$name.count",
"default" => "null"
)
);
}
}

View File

@ -25,7 +25,6 @@ dol_include_once('/debugbar/class/autoloader.php');
use DebugBar\DebugBar;
dol_include_once('/debugbar/class/DataCollector/DolMessagesCollector.php');
dol_include_once('/debugbar/class/DataCollector/DolRequestDataCollector.php');
dol_include_once('/debugbar/class/DataCollector/DolConfigCollector.php');
dol_include_once('/debugbar/class/DataCollector/DolTimeDataCollector.php');
@ -51,8 +50,6 @@ class DolibarrDebugBar extends DebugBar
*/
public function __construct()
{
global $conf;
//$this->addCollector(new PhpInfoCollector());
//$this->addCollector(new DolMessagesCollector());
$this->addCollector(new DolRequestDataCollector());

View File

@ -80,7 +80,6 @@
* - data
*/
var HookListWidget = PhpDebugBar.Widgets.HookListWidget = PhpDebugBar.Widgets.KVListWidget.extend({
className: csscls('widgets-kvlist widgets-hooklist'),
itemRenderer: function(dt, dd, key, object) {