Revert "Throw when trying to remove a child highlighter that does not exists"
This reverts commit 56237aa8f8
.
Throwing seems more correct, but it breaks lots of existing scripts.
reverting for now until we have a nice solution.
This commit is contained in:
parent
bec849ae14
commit
5c1a5c6d15
|
@ -39,8 +39,6 @@ void HighlighterGroup::add_child(HighlighterAndId&& hl)
|
|||
|
||||
void HighlighterGroup::remove_child(StringView id)
|
||||
{
|
||||
if (not m_highlighters.contains(id))
|
||||
throw runtime_error{format("no such child: {}", id)};
|
||||
m_highlighters.remove(id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user