From 4950b5b526fae265b96eeb29519b067566e29a7a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 23 Sep 2014 08:09:46 -0400 Subject: [PATCH] Remove unused code Signed-off-by: Marc Delisle --- libraries/Font.class.php | 6 ++---- libraries/Message.class.php | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libraries/Font.class.php b/libraries/Font.class.php index d32ce510be..b86ef61dfa 100644 --- a/libraries/Font.class.php +++ b/libraries/Font.class.php @@ -19,12 +19,10 @@ class PMA_Font /** * Get list with characters and the corresponding width modifiers. * - * @param string $font name of the font like Arial,sans-serif etc - * * @return array with characters and corresponding width modifier * @access public */ - public static function getCharLists($font) + public static function getCharLists() { // list of characters and their width modifiers $charLists = array(); @@ -96,7 +94,7 @@ class PMA_Font || !isset($charLists[0]["chars"]) || !is_array($charLists[0]["chars"]) || !isset($charLists[0]["modifier"]) ) { - $charLists = self::getCharLists($font); + $charLists = self::getCharLists(); } /* diff --git a/libraries/Message.class.php b/libraries/Message.class.php index a0ebff76f6..2b054f2b2c 100644 --- a/libraries/Message.class.php +++ b/libraries/Message.class.php @@ -746,7 +746,6 @@ class PMA_Message */ public function getMessageWithIcon($message) { - $image = ''; if ('error' == $this->getLevel()) { $image = 's_error.png'; } elseif ('success' == $this->getLevel()) {