Skip to content

Commit

Permalink
Remove unreferenced variables. (#7857)
Browse files Browse the repository at this point in the history
Co-authored-by: David Lowndes <David@DAVIDPCZ>
  • Loading branch information
Dave-Lowndes and David Lowndes authored Nov 21, 2024
1 parent 4a1f96b commit 971c646
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/common/ModulatorPresetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,11 @@ std::vector<ModulatorPreset::Category> ModulatorPreset::getPresets(SurgeStorage
bool isU = i;
try
{
std::string currentCategoryName = "";
Category currentCategory;
for (auto &d : fs::recursive_directory_iterator(p))
{
auto dp = fs::path(d);
auto base = dp.stem();
auto fn = dp.filename();
auto ext = dp.extension();
if (path_to_string(ext) != ".modpreset")
{
Expand Down
1 change: 0 additions & 1 deletion src/surge-testrunner/UnitTestsINFRA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ TEST_CASE("QuadFilterUnit Is SIMD Aligned", "[infra]")
SECTION("Array of QuadFilterUnits")
{
int nqfus = 5;
std::vector<sst::filters::QuadFilterUnitState *> pointers;
for (int i = 0; i < 5000; ++i)
{
auto *f = new sst::filters::QuadFilterUnitState[nqfus]();
Expand Down
1 change: 0 additions & 1 deletion src/surge-testrunner/UnitTestsIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ TEST_CASE("Stream Wavetable Names", "[io]")

TEST_CASE("Load Patches With Embedded KBM", "[io]")
{
std::vector<std::string> patches = {};
SECTION("Check Restore")
{
{
Expand Down
1 change: 0 additions & 1 deletion src/surge-xt/gui/SkinSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,6 @@ Skin::hoverBitmapOverlayForBackgroundBitmap(Skin::Control::ptr_t c, SurgeImage *
auto pos = b->fname.find("bmp00");
if (pos != std::string::npos)
{
auto b4 = b->fname.substr(0, pos);
auto ftr = b->fname.substr(pos + 3);

switch (t)
Expand Down

0 comments on commit 971c646

Please sign in to comment.