Skip to content

Commit

Permalink
Remove overly pedantic asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Apr 28, 2024
1 parent 25adb5f commit 86476fe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/util/warningmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ class WarningManager
{
std::vector<WarningMessage>::iterator warningPos = std::lower_bound(
m_warningManager.begin(), m_warningManager.end(), WarningMessage(messageId));
assert(messageId.empty() ||
(warningPos != m_warningManager.end() && warningPos->GetId() == messageId));
return (warningPos != m_warningManager.end() && warningPos->GetId() == messageId) ?
warningPos :
m_warningManager.end();
Expand All @@ -238,8 +236,6 @@ class WarningManager
{
std::vector<WarningMessage>::iterator warningPos = std::lower_bound(
m_warningManager.begin(), m_warningManager.end(), WarningMessage(messageId));
assert(messageId.empty() ||
(warningPos != m_warningManager.end() && warningPos->GetId() == messageId));
return (warningPos != m_warningManager.end() && warningPos->GetId() == messageId);
}

Expand Down

0 comments on commit 86476fe

Please sign in to comment.