mirror of
https://github.com/webmin/webmin.git
synced 2026-04-11 03:40:19 +01:00
Remove useless function
This commit is contained in:
@@ -771,20 +771,6 @@ if (!$priv_fields{$type}) {
|
||||
return @{$priv_fields{$type}};
|
||||
}
|
||||
|
||||
# host_priv_cols()
|
||||
# Returns the number of columns used for privileges in the db table
|
||||
sub host_priv_cols
|
||||
{
|
||||
if (!$host_priv_cols) {
|
||||
local @str = &table_structure("mysql", "host");
|
||||
local $s;
|
||||
foreach $s (@str) {
|
||||
$host_priv_cols++ if ($s->{'field'} =~ /_priv/i);
|
||||
}
|
||||
}
|
||||
return $host_priv_cols;
|
||||
}
|
||||
|
||||
sub is_blob
|
||||
{
|
||||
return $_[0]->{'type'} =~ /(text|blob)$/i;
|
||||
|
||||
Reference in New Issue
Block a user