Remove not used method

This commit is contained in:
Laurent Destailleur
2024-10-04 12:35:23 +02:00
parent 40f2830714
commit bd4dbe7b1a
2 changed files with 8 additions and 25 deletions

View File

@@ -3163,23 +3163,6 @@ function fieldLabel($langkey, $fieldkey, $fieldrequired = 0)
return $ret;
}
/**
* Return string to add class property on html element with pair/impair.
*
* @param boolean $var false or true
* @param string $moreclass More class to add
* @return string String to add class onto HTML element
*/
function dol_bc($var, $moreclass = '')
{
global $bc;
$ret = ' '.$bc[$var];
if ($moreclass) {
$ret = preg_replace('/class=\"/', 'class="'.$moreclass.' ', $ret);
}
return $ret;
}
/**
* Return a formatted address (part address/zip/town/state) according to country rules.
* See https://en.wikipedia.org/wiki/Address
@@ -12669,7 +12652,7 @@ function dolGetButtonTitleSeparator($moreClass = "")
/**
* get field error icon
*
* @param string $fieldValidationErrorMsg message to add in tooltip
* @param string $fieldValidationErrorMsg Message to add in tooltip
* @return string html output
*/
function getFieldErrorIcon($fieldValidationErrorMsg)
@@ -14678,7 +14661,7 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
/**
* Helper function that combines values of a dolibarr DatePicker (such as Form::selectDate) for year, month, day (and
* optionally hour, minute, second) fields to return a a portion of URL reproducing the values from the current HTTP
* optionally hour, minute, second) fields to return a portion of URL reproducing the values from the current HTTP
* request.
*
* @param string $prefix Prefix used to build the date selector (for instance using Form::selectDate)
@@ -14713,14 +14696,13 @@ function buildParamDate($prefix, $timestamp = null, $hourTime = '', $gm = 'auto'
* whether to include the header and footer, and if only the message should be shown without additional details.
* The function also supports executing additional hooks for customized handling of error pages.
*
* @param string $message Custom error message to display. If empty, a default "Record Not Found" message is shown.
* @param int<0,1> $printheader Determines if the page header should be printed (1 = yes, 0 = no).
* @param int<0,1> $printfooter Determines if the page footer should be printed (1 = yes, 0 = no).
* @param int<0,1> $showonlymessage If set to 1, only the error message is displayed without any additional information or hooks.
* @param mixed $params Optional parameters to pass to hooks for further processing or customization.
* @param string $message Custom error message to display. If empty, a default "Record Not Found" message is shown.
* @param int<0,1> $printheader Determines if the page header should be printed (1 = yes, 0 = no).
* @param int<0,1> $printfooter Determines if the page footer should be printed (1 = yes, 0 = no).
* @param int<0,1> $showonlymessage If set to 1, only the error message is displayed without any additional information or hooks.
* @param mixed $params Optional parameters to pass to hooks for further processing or customization.
* @global Conf $conf Dolibarr configuration object (global)
* @global DoliDB $db Database connection object (global)
* @global User $user Current user object (global)
* @global Translate $langs Language translation object, initialized within the function if not already.
* @global HookManager $hookmanager Hook manager object, initialized within the function if not already for executing hooks.
* @global string $action Current action, can be modified by hooks.