mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Remove unused function
This commit is contained in:
parent
de20c93b14
commit
266e470509
|
|
@ -117,11 +117,6 @@ GetMacroConditions(Macro *macro)
|
|||
return macro->Conditions();
|
||||
}
|
||||
|
||||
std::string_view GetSceneSwitchActionId()
|
||||
{
|
||||
return MacroAction::GetDefaultID();
|
||||
}
|
||||
|
||||
std::condition_variable &GetMacroWaitCV()
|
||||
{
|
||||
static std::condition_variable cv;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class Macro;
|
|||
class MacroAction;
|
||||
class MacroCondition;
|
||||
|
||||
static const int macro_func = 10;
|
||||
|
||||
EXPORT std::deque<std::shared_ptr<Macro>> &GetTopLevelMacros();
|
||||
std::deque<std::shared_ptr<Macro>> &GetTemporaryMacros();
|
||||
EXPORT std::deque<std::shared_ptr<Macro>> GetAllMacros();
|
||||
|
|
@ -35,10 +37,6 @@ GetMacroElseActions(Macro *);
|
|||
EXPORT std::optional<std::deque<std::shared_ptr<MacroCondition>>>
|
||||
GetMacroConditions(Macro *);
|
||||
|
||||
std::string_view GetSceneSwitchActionId();
|
||||
|
||||
constexpr auto macro_func = 10;
|
||||
|
||||
EXPORT std::condition_variable &GetMacroWaitCV();
|
||||
EXPORT std::condition_variable &GetMacroTransitionCV();
|
||||
|
||||
|
|
|
|||
|
|
@ -948,12 +948,12 @@ bool Macro::PostLoad()
|
|||
bool Macro::SwitchesScene() const
|
||||
{
|
||||
for (const auto &a : _actions) {
|
||||
if (a->GetId() == GetSceneSwitchActionId()) {
|
||||
if (a->GetId() == MacroAction::GetDefaultID()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
for (const auto &a : _elseActions) {
|
||||
if (a->GetId() == GetSceneSwitchActionId()) {
|
||||
if (a->GetId() == MacroAction::GetDefaultID()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user