diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-03 22:01:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 22:01:42 -0800 |
commit | a73f9d55155356b90089b00e1a7cc49107a4c587 (patch) | |
tree | ce583b9afb8eaf57974b3ecbf9ea671287fe873e /src/context/context.cpp | |
parent | 0ef293cad1df1f54122a2eb4dd56b3b71ba6714e (diff) |
Removing throw specifiers from context/. (#1473)
Diffstat (limited to 'src/context/context.cpp')
-rw-r--r-- | src/context/context.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/context/context.cpp b/src/context/context.cpp index 66d6a6542..a11cc0e32 100644 --- a/src/context/context.cpp +++ b/src/context/context.cpp @@ -135,8 +135,8 @@ void Context::addNotifyObjPost(ContextNotifyObj* pCNO) { d_pCNOpost = pCNO; } - -void ContextObj::update() throw(AssertionException) { +void ContextObj::update() +{ Debug("context") << "before update(" << this << "):" << std::endl << "context is " << getContext() << std::endl << *getContext() << std::endl; @@ -194,8 +194,8 @@ void ContextObj::update() throw(AssertionException) { << *getContext() << std::endl; } - -ContextObj* ContextObj::restoreAndContinue() throw(AssertionException) { +ContextObj* ContextObj::restoreAndContinue() +{ // Variable to hold next object in list ContextObj* pContextObjNext; @@ -235,8 +235,8 @@ ContextObj* ContextObj::restoreAndContinue() throw(AssertionException) { return pContextObjNext; } - -void ContextObj::destroy() throw(AssertionException) { +void ContextObj::destroy() +{ /* Context can be big and complicated, so we only want to process this output * if we're really going to use it. (Same goes below.) */ Debug("context") << "before destroy " << this << " (level " << getLevel() @@ -319,9 +319,8 @@ ContextNotifyObj::~ContextNotifyObj() { } } - -std::ostream& operator<<(std::ostream& out, - const Context& context) throw(AssertionException) { +std::ostream& operator<<(std::ostream& out, const Context& context) +{ static const std::string separator(79, '-'); int level = context.d_scopeList.size() - 1; @@ -338,9 +337,8 @@ std::ostream& operator<<(std::ostream& out, return out << separator << std::endl; } - -std::ostream& operator<<(std::ostream& out, - const Scope& scope) throw(AssertionException) { +std::ostream& operator<<(std::ostream& out, const Scope& scope) +{ out << "Scope " << scope.d_level << " [" << &scope << "]:"; ContextObj* pContextObj = scope.d_pContextObjList; Assert(pContextObj == NULL || |