Remove obsolete comments from field_fmt
authorTom Tromey <tom@tromey.com>
Sun, 25 Nov 2018 19:30:20 +0000 (12:30 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 25 Nov 2018 22:29:35 +0000 (15:29 -0700)
This removes some comments that I believe were made obsolete by the
recent change to cli_ui_out::do_field_fmt.  The comment in mi_ui_out
probably was just copy/paste, because I think aligning never made
sense in an MI context.

gdb/ChangeLog
2018-11-25  Tom Tromey  <tom@tromey.com>

* ui-out.c (ui_out::field_fmt): Remove comment.
* tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
* mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.

gdb/ChangeLog
gdb/mi/mi-out.c
gdb/tui/tui-out.c
gdb/ui-out.c

index 2515a4d0b845c35cb0ce586df5769f58ecc448a3..12523ca434992d84f6798c3f36e1bf39791d5c54 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-25  Tom Tromey  <tom@tromey.com>
+
+       * ui-out.c (ui_out::field_fmt): Remove comment.
+       * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
+       * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
+
 2018-11-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
        * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
index ea39fe29a1774d12beafca5145e6f47326e33aed..39b18b03a0197e699f401413b71b219385a7adf3 100644 (file)
@@ -124,8 +124,6 @@ mi_ui_out::do_field_string (int fldno, int width, ui_align align,
   fprintf_unfiltered (stream, "\"");
 }
 
-/* This is the only field function that does not align.  */
-
 void
 mi_ui_out::do_field_fmt (int fldno, int width, ui_align align,
                         const char *fldname, const char *format,
index 40f736fcb2f55755d937ebc6d5375123e2d8321d..6d4e2363f353b17b4ccda2549d560fc974cb74d9 100644 (file)
@@ -71,8 +71,6 @@ tui_ui_out::do_field_string (int fldno, int width, ui_align align,
   cli_ui_out::do_field_string (fldno, width, align, fldname, string);
 }
 
-/* This is the only field function that does not align.  */
-
 void
 tui_ui_out::do_field_fmt (int fldno, int width, ui_align align,
                          const char *fldname, const char *format,
index ebe0285b49e29aa58e4c4bf1294628c663adccb0..3d74f785434b6e29701c70204c3709bd22306cd2 100644 (file)
@@ -523,7 +523,6 @@ ui_out::field_fmt (const char *fldname, const char *format, ...)
   int width;
   ui_align align;
 
-  /* Will not align, but has to call anyway.  */
   verify_field (&fldno, &width, &align);
 
   va_start (args, format);