Skip to content

Commit

Permalink
Remove dead things
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jul 31, 2023
1 parent 33222cf commit 22d7def
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions src/gui/pedalboard/BoardComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,7 @@ void BoardComponent::showNewProcMenu (PopupMenu& menu, PopupMenu::Options& optio
}
else
{
// const auto desktopScaleFactor = Desktop::getInstance().getGlobalScaleFactor();
// const auto clickPosition = options.getTargetScreenArea().getPosition();
// const auto clickPositionScaled = Desktop::getInstance().getDisplays().physicalToLogical (clickPosition);
// const auto screenPosition = getScreenPosition();
nextEditorPosition = mousePos; // options.getTargetScreenArea().getPosition() - getScreenPosition();
// const auto editorPositionFixed = clickPositionScaled - screenPosition;
nextEditorPosition = mousePos;

const auto halfEditorWidth = getScaleDim (editorWidth, scaleFactor) / 2;
const auto halfEditorHeight = getScaleDim (editorHeight, scaleFactor) / 2;
Expand Down
2 changes: 0 additions & 2 deletions src/processors/other/Gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ Gate::Gate (UndoManager* um) : BaseProcessor ("Gate", createParameterLayout(), u
loadParameterPointer (releaseMsParam, vts, "release");
loadParameterPointer (makeupDBParam, vts, "makeup");

[[maybe_unused]] static constexpr auto ss = sizeof (GateEnvelope);
static_assert (ss <= 1048);
gateEnvelope.emplace();

uiOptions.backgroundColour = Colours::forestgreen.brighter (0.1f);
Expand Down

0 comments on commit 22d7def

Please sign in to comment.