Remove fputs_styled_unfiltered
fputs_styled_unfiltered is only called from cli_ui_out, so remove it. This area will be further simplified in future patches.
This commit is contained in:
parent
3cd5229387
commit
f4bf8795b3
3 changed files with 10 additions and 21 deletions
|
@ -171,10 +171,13 @@ cli_ui_out::do_field_string (int fldno, int width, ui_align align,
|
|||
|
||||
if (string)
|
||||
{
|
||||
ui_file *stream = m_streams.back ();
|
||||
stream->emit_style_escape (style);
|
||||
if (test_flags (unfiltered_output))
|
||||
fputs_styled_unfiltered (string, style, m_streams.back ());
|
||||
stream->puts_unfiltered (string);
|
||||
else
|
||||
fputs_styled (string, style, m_streams.back ());
|
||||
stream->puts (string);
|
||||
stream->emit_style_escape (ui_file_style ());
|
||||
}
|
||||
|
||||
if (after)
|
||||
|
@ -233,10 +236,13 @@ cli_ui_out::do_message (const ui_file_style &style,
|
|||
std::string str = string_vprintf (format, args);
|
||||
if (!str.empty ())
|
||||
{
|
||||
ui_file *stream = m_streams.back ();
|
||||
stream->emit_style_escape (style);
|
||||
if (test_flags (unfiltered_output))
|
||||
fputs_styled_unfiltered (str.c_str (), style, m_streams.back ());
|
||||
stream->puts_unfiltered (str.c_str ());
|
||||
else
|
||||
fputs_styled (str.c_str (), style, m_streams.back ());
|
||||
stream->puts (str.c_str ());
|
||||
stream->emit_style_escape (ui_file_style ());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue