]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove leftover
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 16 Mar 2010 19:01:19 +0000 (20:01 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 16 Mar 2010 19:01:19 +0000 (20:01 +0100)
normal/menu_text.c

index 2e2cf0e0cb021d0c745a2f54cdc043871aad4c58..884eb2c30b8b4f97032268ca19711c6b8e66180f 100644 (file)
@@ -71,44 +71,6 @@ grub_print_message_indented (const char *msg, int margin_left, int margin_right,
 
   grub_print_ucs4 (unicode_msg, last_position, margin_left, margin_right, term);
 
-#if 0
-  int line_len;
-
-  grub_uint32_t *current_position = unicode_msg;
-
-  grub_uint32_t *next_new_line = unicode_msg;
-
-  int first_loop = 1;
-
-  while (current_position < last_position)
-    {
-      if (! first_loop)
-        grub_putcode ('\n', term);
-     
-      next_new_line = (grub_uint32_t *) last_position;
-
-      while (grub_getstringwidth (current_position, next_new_line,term) 
-            > line_len
-            || (next_new_line != last_position && *next_new_line != ' '
-               && next_new_line > current_position))
-       {
-         next_new_line--;
-       }
-
-      if (next_new_line == current_position)
-       {
-         next_new_line = (next_new_line + line_len > last_position) ?
-           (grub_uint32_t *) last_position : next_new_line + line_len;
-       }
-
-      print_spaces (margin_left, term);
-      grub_print_ucs4 (current_position, next_new_line, term);
-
-      next_new_line++;
-      current_position = next_new_line;
-      first_loop = 0;
-    }
-#endif
   grub_free (unicode_msg);
 }