]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20204 removing obsoleted code before more refactoring
authorPetr Skoda <skodak@moodle.org>
Thu, 7 Jan 2010 17:57:54 +0000 (17:57 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 7 Jan 2010 17:57:54 +0000 (17:57 +0000)
lib/outputrenderers.php

index 3529d923f3e8265671ff4409245807ec4b435fdb..25691842651cf0c97bfc4365059eb03453cdf968 100644 (file)
@@ -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