Skip to content

Commit

Permalink
Remove bad checks
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 17, 2024
1 parent 441d87f commit afc21de
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions plugins/core-plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -972,11 +972,9 @@ namespace clap {
}

void CorePlugin::undoSetUndoName(const char *name) noexcept {
if (name && *name) {
if (!_canUndo && false)
hostMisbehaving("set undo name while it isn't possible to undo");
if (name && *name)
_undoName = name;
} else
else
_undoName.reset();

#ifndef CLAP_PLUGINS_HEADLESS
Expand All @@ -986,11 +984,9 @@ namespace clap {
}

void CorePlugin::undoSetRedoName(const char *name) noexcept {
if (name && *name) {
if (!_canRedo && false)
hostMisbehaving("set undo name while it isn't possible to redo");
if (name && *name)
_redoName = name;
} else
else
_redoName.reset();

#ifndef CLAP_PLUGINS_HEADLESS
Expand Down

0 comments on commit afc21de

Please sign in to comment.