1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 15:51:15 +02:00

comments and cleanup

This commit is contained in:
Ben Burdette 2020-06-30 16:31:55 -06:00
parent 70bcb39d3f
commit 9159dfe3d8
9 changed files with 7 additions and 19 deletions

View file

@ -27,7 +27,6 @@ const string& BaseError::calcWhat() const
std::ostringstream oss;
showErrorInfo(oss, err, false);
// oss << err;
what_ = oss.str();
return *what_;
@ -35,7 +34,6 @@ const string& BaseError::calcWhat() const
}
std::optional<string> ErrorInfo::programName = std::nullopt;
// bool ErrorInfo::showTrace = false;
std::ostream& operator<<(std::ostream &os, const hintformat &hf)
{
@ -212,7 +210,6 @@ void printAtPos(const string &prefix, const ErrPos &pos, std::ostream &out)
}
}
// std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo)
std::ostream& showErrorInfo(std::ostream &out, const ErrorInfo &einfo, bool showTrace)
{
auto errwidth = std::max<size_t>(getWindowSize().second, 20);