Remove deprecated code 🎆 🎆 🎆

This commit is contained in:
Victor Zverovich
2014-07-01 09:10:43 -07:00
parent ccf1dbb139
commit 2dc108b31f
3 changed files with 14 additions and 388 deletions
+8 -9
View File
@@ -1104,15 +1104,6 @@ void fmt::ReportWinError(
}
#endif
void fmt::ANSITerminalSink::operator()(
const fmt::BasicWriter<char> &w) const {
char escape[] = "\x1b[30m";
escape[3] = '0' + static_cast<char>(color_);
std::fputs(escape, file_);
std::fwrite(w.data(), 1, w.size(), file_);
std::fputs(RESET_COLOR, file_);
}
void fmt::print(StringRef format, const ArgList &args) {
Writer w;
w.write(format, args);
@@ -1125,6 +1116,14 @@ void fmt::print(std::FILE *f, StringRef format, const ArgList &args) {
std::fwrite(w.data(), 1, w.size(), f);
}
void fmt::print_colored(Color c, StringRef format, const ArgList &args) {
char escape[] = "\x1b[30m";
escape[3] = '0' + static_cast<char>(c);
std::fputs(escape, stdout);
print(format, args);
std::fputs(RESET_COLOR, stdout);
}
void fmt::printf(StringRef format, const ArgList &args) {
Writer w;
printf(w, format, args);