@@ -230,15 +230,6 @@ __vprint_nonunicode(FILE* __stream, string_view __fmt, format_args __args, bool
230
230
// terminal when the output is redirected. Typically during testing the
231
231
// output is redirected to be able to capture it. This makes it hard to
232
232
// test this code path.
233
- template <class = void > // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
234
- _LIBCPP_HIDE_FROM_ABI inline void
235
- __vprint_unicode_posix (FILE* __stream, string_view __fmt, format_args __args, bool __write_nl, bool __is_terminal) {
236
- // TODO PRINT Should flush errors throw too?
237
- if (__is_terminal)
238
- std::fflush (__stream);
239
-
240
- __print::__vprint_nonunicode (__stream, __fmt, __args, __write_nl);
241
- }
242
233
243
234
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
244
235
template <class = void > // TODO PRINT template or availability markup fires too eagerly (http://llvm.org/PR61563).
@@ -310,7 +301,7 @@ __vprint_unicode([[maybe_unused]] FILE* __stream,
310
301
// Windows there is a different API. This API requires transcoding.
311
302
312
303
# ifndef _WIN32
313
- __print::__vprint_unicode_posix (__stream, __fmt, __args, __write_nl, __print::__is_terminal (__stream) );
304
+ __print::__vprint_nonunicode (__stream, __fmt, __args, __write_nl);
314
305
# elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)
315
306
__print::__vprint_unicode_windows (__stream, __fmt, __args, __write_nl, __print::__is_terminal (__stream));
316
307
# else
0 commit comments