Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused arguments from printCmsExceptionWarning #13292

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion FWCore/MessageLogger/interface/ExceptionMessages.h
Expand Up @@ -9,6 +9,6 @@ namespace edm {
class JobReport;

void printCmsException(cms::Exception& e, edm::JobReport * jobRep = 0, int rc = -1);
void printCmsExceptionWarning(char const* behavior, cms::Exception const& e, edm::JobReport * jobRep = 0, int rc = -1);
void printCmsExceptionWarning(char const* behavior, cms::Exception const& e);
}
#endif
3 changes: 1 addition & 2 deletions FWCore/MessageLogger/src/ExceptionMessages.cc
Expand Up @@ -25,7 +25,7 @@ namespace edm {
}

void
printCmsExceptionWarning(char const* behavior, cms::Exception const& e, edm::JobReport * jobRep, int rc) try {
printCmsExceptionWarning(char const* behavior, cms::Exception const& e) try {
std::string shortDesc(behavior);
shortDesc += " Exception";
std::ostringstream longDesc;
Expand All @@ -36,7 +36,6 @@ namespace edm {
<< "-----------------------\n"
<< longDesc.str()
<< "----- End " << shortDesc << " -------------------------------------------------";
if(jobRep) jobRep->reportError(shortDesc, longDesc.str(), rc);
} catch(...) {
}
}