Skip to content

Commit

Permalink
refactor: remove now unused configFlagFromBools utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Aug 18, 2024
1 parent b204275 commit 9072b2e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/control/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,6 @@ class ControlDoublePrivate : public QObject {

static QHash<ConfigKey, ConfigKey> getControlAliases();

// used as a transitional tool from the boolean-based APIs to the
// QFlag-based one.
constexpr static ControlConfigFlags configFlagFromBools(
bool bIgnoreNops,
bool bTrack,
bool bPersist) {
using enum ControlConfigFlag;
return ControlConfigFlags()
.setFlag(IgnoreNops, bIgnoreNops)
.setFlag(Track, bTrack)
.setFlag(Persist, bPersist);
};

const QString& name() const {
return m_name;
}
Expand Down

0 comments on commit 9072b2e

Please sign in to comment.