Removed unused globals (#709)

This commit is contained in:
Roman Kelesidis 2023-05-23 14:04:25 +07:00 committed by GitHub
commit 7b456fcb54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View file

@ -150,8 +150,6 @@ class Dev
*/
private static function get_sql_log_html(object $db_obj, string $log_name): string
{
global $lang;
$log = '';
foreach ($db_obj->dbg as $i => $dbg) {

View file

@ -950,8 +950,6 @@ class SqlDb
*/
public function explain($mode, $html_table = '', $row = '')
{
global $lang;
$query = str_compact($this->cur_query);
// remove comments
$query = preg_replace('#(\s*)(/\*)(.*)(\*/)(\s*)#', '', $query);