Skip to content

Commit

Permalink
various: little bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepVanlier committed Jul 18, 2024
1 parent 7cffaf5 commit 1524900
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion plugin/components/graphics_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ void YsfxGraphicsView::paint(juce::Graphics &g)
}

///
juce::Point<int> off = m_impl->getDisplayOffset();
Impl::GfxTarget *target = m_impl->m_gfxTarget.get();

// Get final pixel size (we want to correct for any DPI scaling that's happening by making the
Expand Down
1 change: 0 additions & 1 deletion plugin/components/graphics_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class YsfxGraphicsView : public juce::Component, public juce::FileDragAndDropTar
private:
float m_pixelFactor{1.0f};
float m_outputScalingFactor{1.0f};
bool m_clearPaint{true};

struct Impl;
std::unique_ptr<Impl> m_impl;
Expand Down
2 changes: 1 addition & 1 deletion plugin/processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void YsfxProcessor::prepareToPlay(double sampleRate, int samplesPerBlock)

ysfx_t *fx = m_impl->m_fx.get();
m_impl->m_sample_rate = sampleRate;
m_impl->m_block_size = samplesPerBlock;
m_impl->m_block_size = static_cast<uint32_t>(samplesPerBlock);

ysfx_set_sample_rate(fx, sampleRate);
ysfx_set_block_size(fx, (uint32_t)samplesPerBlock);
Expand Down
2 changes: 0 additions & 2 deletions sources/ysfx_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
bool ysfx_preprocess(ysfx::text_reader &reader, ysfx_parse_error *error, std::string& in_str)
{
std::string line;
uint32_t lineno = 0;

line.reserve(256);

WDL_FastString file_str, pp_str;
Expand Down

0 comments on commit 1524900

Please sign in to comment.