From c8e8c8c671002297d8057c440ee20d86a61cd425 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 7 Jan 2010 17:57:54 +0000 Subject: [PATCH] MDL-20204 removing obsoleted code before more refactoring --- lib/outputrenderers.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 3529d923f3..2569184265 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -197,28 +197,6 @@ class renderer_base { } } - /** - * Given a html_component with height and/or width set, translates them - * to appropriate CSS rules. - * - * @param html_component $component - * @return string CSS rules - */ - protected function prepare_legacy_width_and_height(html_component $component) { - $output = ''; - if (!empty($component->height)) { - // We need a more intelligent way to handle these warnings. If $component->height have come from - // somewhere in deprecatedlib.php, then there is no point outputting a warning here. - // debugging('Explicit height given to html_component leads to inline css. Use a proper CSS class instead.', DEBUG_DEVELOPER); - $output .= "height: {$component->height}px;"; - } - if (!empty($component->width)) { - // debugging('Explicit width given to html_component leads to inline css. Use a proper CSS class instead.', DEBUG_DEVELOPER); - $output .= "width: {$component->width}px;"; - } - return $output; - } - /** * Helper function for applying of html_component options * @param html_component $component -- 2.39.5