Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various: Remove unused variables #467

Merged
merged 1 commit into from Apr 22, 2020
Merged

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Mar 18, 2020

Eliminate several data members and local variables across the codebase, because they were flagged by static analysis tools as never being used anywhere in the code. First part of my massive clazy/Codacy cleanup sweep.

Also, the src/bindings/ruby/test.rb file is renamed to src/examples/Example.rb. I hadn't intended to include that in this PR, but it makes sense so I'll leave it.

@ferdnyc
Copy link
Contributor Author

ferdnyc commented Mar 19, 2020

Whoops, missed onetwo. Fixed.

@ferdnyc ferdnyc force-pushed the unused-var-sweep branch 2 times, most recently from a490955 to 89e774b Compare March 19, 2020 08:46
Several data members and local variables were flagged by static
analysis tools as never being used anywhere in the code.
@ferdnyc ferdnyc added the code Source code cleanup, streamlining, or style tweaks label Mar 19, 2020
@codecov-io
Copy link

Codecov Report

Merging #467 into develop will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #467      +/-   ##
===========================================
+ Coverage    48.04%   48.05%   +<.01%     
===========================================
  Files          128      128              
  Lines         9941     9933       -8     
===========================================
- Hits          4776     4773       -3     
+ Misses        5165     5160       -5
Impacted Files Coverage Δ
include/FFmpegWriter.h 25% <ø> (ø) ⬆️
src/AudioReaderSource.cpp 0% <ø> (ø) ⬆️
include/Clip.h 88.88% <ø> (ø) ⬆️
src/Timeline.cpp 38.57% <ø> (+0.05%) ⬆️
include/ImageWriter.h 25% <ø> (ø) ⬆️
src/ImageWriter.cpp 98.11% <ø> (ø) ⬆️
src/FFmpegWriter.cpp 62.98% <ø> (-0.04%) ⬇️
include/AudioReaderSource.h 0% <ø> (ø) ⬆️
src/AudioBufferSource.cpp 0% <0%> (ø) ⬆️
src/FFmpegReader.cpp 68.24% <100%> (-0.06%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 816118b...9be6a9a. Read the comment docs.

@ferdnyc
Copy link
Contributor Author

ferdnyc commented Apr 22, 2020

They're unused, it's right in the name. Merging.

@ferdnyc ferdnyc merged commit 6336f30 into OpenShot:develop Apr 22, 2020
@ferdnyc ferdnyc deleted the unused-var-sweep branch April 22, 2020 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Source code cleanup, streamlining, or style tweaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants