Skip to content

Commit

Permalink
fixing unused variables and a real bug
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Apr 19, 2024
1 parent fcdd380 commit 1be975f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,8 +1229,6 @@ void wrapper_context_menu_item::vst3_to_clap(clap_id action_id)
name = std::make_unique<std::string>();
*name = VST3::StringConvert::convert(vst3item.name);

bool is_checked = vst3item.flags & vst3item.kIsChecked;

if (vst3item.flags == vst3item.kIsGroupStart)
{
kind = CLAP_CONTEXT_MENU_ITEM_BEGIN_SUBMENU;
Expand Down Expand Up @@ -1344,6 +1342,7 @@ bool ClapAsVst3::context_menu_perform(const clap_context_menu_target_t* target,
auto& item = contextmenuitems.at(action_id);
bool okay = (kResultOk == item.vst3target->executeMenuItem(item.vst3item.tag));
clearContextMenu();
return okay;
}
return false;
}
Expand Down

0 comments on commit 1be975f

Please sign in to comment.