Remove unused variables (Wunused-variable)

This commit is contained in:
David Robillard 2021-05-28 12:18:38 -04:00
parent 1b4aaea92a
commit 74e21e942e
11 changed files with 0 additions and 16 deletions

View File

@ -977,7 +977,6 @@ Editor::compute_bbt_ruler_scale (samplepos_t lower, samplepos_t upper)
return;
}
std::vector<TempoMap::BBTPoint>::const_iterator i;
Timecode::BBT_Time lower_beat, upper_beat; // the beats at each end of the ruler
double floor_lower_beat = floor(std::max (0.0, _session->tempo_map().beat_at_sample (lower)));

View File

@ -278,7 +278,6 @@ Session::import_pt_rest (PTFFormat& ptf)
uint32_t srate = sample_rate ();
vector<struct ptflookup> ptfregpair;
vector<PTFFormat::wav_t>::const_iterator w;
SourceList just_one_src;

View File

@ -650,7 +650,6 @@ int
IO::set_state_2X (const XMLNode& node, int version, bool in)
{
XMLProperty const * prop;
XMLNodeConstIterator iter;
LocaleGuard lg;
/* force use of non-localized representation of decimal point,

View File

@ -2302,7 +2302,6 @@ Playlist::set_state (const XMLNode& node, int version)
XMLNode* child;
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLPropertyConstIterator piter;
boost::shared_ptr<Region> region;
string region_name;
bool seen_region_nodes = false;

View File

@ -4746,7 +4746,6 @@ bool
Session::audio_source_name_is_unique (const string& name)
{
std::vector<string> sdirs = source_search_path (DataType::AUDIO);
vector<space_and_path>::iterator i;
uint32_t existing = 0;
for (vector<string>::const_iterator i = sdirs.begin(); i != sdirs.end(); ++i) {
@ -4890,7 +4889,6 @@ Session::new_midi_source_path (const string& base, bool need_lock)
while (true) {
possible_name = bump_name_once (possible_name, '-');
vector<space_and_path>::iterator i;
uint32_t existing = 0;
for (vector<string>::const_iterator i = sdirs.begin(); i != sdirs.end(); ++i) {

View File

@ -323,7 +323,6 @@ VSTPlugin::set_state (const XMLNode& node, int version)
_plugin->dispatcher (_plugin, effSetProgram, 0, pgm, NULL, 0);
};
XMLPropertyList::const_iterator i;
XMLNodeList::const_iterator n;
for (n = child->children ().begin (); n != child->children ().end (); ++n) {

View File

@ -758,7 +758,6 @@ int
CC121::set_state (const XMLNode& node, int version)
{
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLNode const* child;
if (ControlProtocol::set_state (node, version)) {

View File

@ -35,11 +35,6 @@ using namespace ARDOUR;
using namespace ArdourSurface;
using namespace PBD;
/* this value is chosen to given smooth motion from 0..1.0 in about 270 degrees
* of encoder rotation.
*/
static const double encoder_divider = 24.0;
void
CC121::input_monitor ()
{

View File

@ -790,7 +790,6 @@ int
FaderPort::set_state (const XMLNode& node, int version)
{
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLNode const* child;
if (ControlProtocol::set_state (node, version)) {

View File

@ -808,7 +808,6 @@ FaderPort8::set_state (const XMLNode& node, int version)
{
DEBUG_TRACE (DEBUG::FaderPort8, "FaderPort8::set_state\n");
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLNode const* child;
if (ControlProtocol::set_state (node, version)) {

View File

@ -803,7 +803,6 @@ GenericMidiControlProtocol::load_bindings (const string& xmlpath)
const XMLNodeList& children (root->children());
XMLNodeConstIterator citer;
XMLNodeConstIterator gciter;
MIDIControllable* mc;