Remove unused variables (Wunused-variable)
This commit is contained in:
parent
1b4aaea92a
commit
74e21e942e
|
@ -977,7 +977,6 @@ Editor::compute_bbt_ruler_scale (samplepos_t lower, samplepos_t upper)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<TempoMap::BBTPoint>::const_iterator i;
|
|
||||||
Timecode::BBT_Time lower_beat, upper_beat; // the beats at each end of the ruler
|
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)));
|
double floor_lower_beat = floor(std::max (0.0, _session->tempo_map().beat_at_sample (lower)));
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,6 @@ Session::import_pt_rest (PTFFormat& ptf)
|
||||||
uint32_t srate = sample_rate ();
|
uint32_t srate = sample_rate ();
|
||||||
|
|
||||||
vector<struct ptflookup> ptfregpair;
|
vector<struct ptflookup> ptfregpair;
|
||||||
vector<PTFFormat::wav_t>::const_iterator w;
|
|
||||||
|
|
||||||
SourceList just_one_src;
|
SourceList just_one_src;
|
||||||
|
|
||||||
|
|
|
@ -650,7 +650,6 @@ int
|
||||||
IO::set_state_2X (const XMLNode& node, int version, bool in)
|
IO::set_state_2X (const XMLNode& node, int version, bool in)
|
||||||
{
|
{
|
||||||
XMLProperty const * prop;
|
XMLProperty const * prop;
|
||||||
XMLNodeConstIterator iter;
|
|
||||||
LocaleGuard lg;
|
LocaleGuard lg;
|
||||||
|
|
||||||
/* force use of non-localized representation of decimal point,
|
/* force use of non-localized representation of decimal point,
|
||||||
|
|
|
@ -2302,7 +2302,6 @@ Playlist::set_state (const XMLNode& node, int version)
|
||||||
XMLNode* child;
|
XMLNode* child;
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNodeConstIterator niter;
|
XMLNodeConstIterator niter;
|
||||||
XMLPropertyConstIterator piter;
|
|
||||||
boost::shared_ptr<Region> region;
|
boost::shared_ptr<Region> region;
|
||||||
string region_name;
|
string region_name;
|
||||||
bool seen_region_nodes = false;
|
bool seen_region_nodes = false;
|
||||||
|
|
|
@ -4746,7 +4746,6 @@ bool
|
||||||
Session::audio_source_name_is_unique (const string& name)
|
Session::audio_source_name_is_unique (const string& name)
|
||||||
{
|
{
|
||||||
std::vector<string> sdirs = source_search_path (DataType::AUDIO);
|
std::vector<string> sdirs = source_search_path (DataType::AUDIO);
|
||||||
vector<space_and_path>::iterator i;
|
|
||||||
uint32_t existing = 0;
|
uint32_t existing = 0;
|
||||||
|
|
||||||
for (vector<string>::const_iterator i = sdirs.begin(); i != sdirs.end(); ++i) {
|
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) {
|
while (true) {
|
||||||
possible_name = bump_name_once (possible_name, '-');
|
possible_name = bump_name_once (possible_name, '-');
|
||||||
|
|
||||||
vector<space_and_path>::iterator i;
|
|
||||||
uint32_t existing = 0;
|
uint32_t existing = 0;
|
||||||
|
|
||||||
for (vector<string>::const_iterator i = sdirs.begin(); i != sdirs.end(); ++i) {
|
for (vector<string>::const_iterator i = sdirs.begin(); i != sdirs.end(); ++i) {
|
||||||
|
|
|
@ -323,7 +323,6 @@ VSTPlugin::set_state (const XMLNode& node, int version)
|
||||||
_plugin->dispatcher (_plugin, effSetProgram, 0, pgm, NULL, 0);
|
_plugin->dispatcher (_plugin, effSetProgram, 0, pgm, NULL, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
XMLPropertyList::const_iterator i;
|
|
||||||
XMLNodeList::const_iterator n;
|
XMLNodeList::const_iterator n;
|
||||||
|
|
||||||
for (n = child->children ().begin (); n != child->children ().end (); ++n) {
|
for (n = child->children ().begin (); n != child->children ().end (); ++n) {
|
||||||
|
|
|
@ -758,7 +758,6 @@ int
|
||||||
CC121::set_state (const XMLNode& node, int version)
|
CC121::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNodeConstIterator niter;
|
|
||||||
XMLNode const* child;
|
XMLNode const* child;
|
||||||
|
|
||||||
if (ControlProtocol::set_state (node, version)) {
|
if (ControlProtocol::set_state (node, version)) {
|
||||||
|
|
|
@ -35,11 +35,6 @@ using namespace ARDOUR;
|
||||||
using namespace ArdourSurface;
|
using namespace ArdourSurface;
|
||||||
using namespace PBD;
|
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
|
void
|
||||||
CC121::input_monitor ()
|
CC121::input_monitor ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -790,7 +790,6 @@ int
|
||||||
FaderPort::set_state (const XMLNode& node, int version)
|
FaderPort::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNodeConstIterator niter;
|
|
||||||
XMLNode const* child;
|
XMLNode const* child;
|
||||||
|
|
||||||
if (ControlProtocol::set_state (node, version)) {
|
if (ControlProtocol::set_state (node, version)) {
|
||||||
|
|
|
@ -808,7 +808,6 @@ FaderPort8::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
DEBUG_TRACE (DEBUG::FaderPort8, "FaderPort8::set_state\n");
|
DEBUG_TRACE (DEBUG::FaderPort8, "FaderPort8::set_state\n");
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNodeConstIterator niter;
|
|
||||||
XMLNode const* child;
|
XMLNode const* child;
|
||||||
|
|
||||||
if (ControlProtocol::set_state (node, version)) {
|
if (ControlProtocol::set_state (node, version)) {
|
||||||
|
|
|
@ -803,7 +803,6 @@ GenericMidiControlProtocol::load_bindings (const string& xmlpath)
|
||||||
|
|
||||||
const XMLNodeList& children (root->children());
|
const XMLNodeList& children (root->children());
|
||||||
XMLNodeConstIterator citer;
|
XMLNodeConstIterator citer;
|
||||||
XMLNodeConstIterator gciter;
|
|
||||||
|
|
||||||
MIDIControllable* mc;
|
MIDIControllable* mc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user