From dc121cc427eecdbd3d9635ccf416640e38e9c349 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 28 Dec 2015 16:01:39 -0800 Subject: [PATCH] Remove useless function --- mysql/mysql-lib.pl | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mysql/mysql-lib.pl b/mysql/mysql-lib.pl index 64e4b0864..ce4c7254e 100755 --- a/mysql/mysql-lib.pl +++ b/mysql/mysql-lib.pl @@ -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;