remove, convert, comment several cerr statements

git-svn-id: svn://localhost/ardour2/branches/3.0@12378 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-05-22 12:57:05 +00:00
parent fa1e12b682
commit 8d5065bc32
15 changed files with 5 additions and 32 deletions

View File

@ -157,11 +157,7 @@ ActionManager::map_some_state (const char* group, const char* action, bool (RCCo
if (tact->get_active() != x) {
tact->set_active (x);
}
} else {
cerr << group << ':' << action << " is not a toggle\n";
}
} else {
cerr << group << ':' << action << " not an action\n";
}
}

View File

@ -1162,7 +1162,6 @@ ARDOUR_UI::redisplay_recent_sessions ()
/* check whether session still exists */
if (!Glib::file_test(fullpath.c_str(), Glib::FILE_TEST_EXISTS)) {
/* session doesn't exist */
cerr << "skipping non-existent session " << fullpath << endl;
continue;
}
@ -2839,7 +2838,6 @@ ARDOUR_UI::show_splash ()
try {
splash = new Splash;
} catch (...) {
cerr << "Splash could not be created\n";
return;
}
}

View File

@ -179,7 +179,6 @@ void
AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool show)
{
if (param.type() == NullAutomation) {
cerr << "WARNING: Attempt to create NullAutomation child, ignoring" << endl;
return;
}

View File

@ -442,8 +442,6 @@ AutomationTimeAxisView::set_height (uint32_t h)
auto_button.hide();
hide_button.hide();
}
} else if (h >= preset_height (HeightNormal)) {
cerr << "track grown, but neither changed_between_small_and_normal nor first_call_to_set_height set!" << endl;
}
if (changed) {

View File

@ -786,7 +786,6 @@ Editor::button_settings () const
XMLNode* node = find_named_node (*settings, X_("Buttons"));
if (!node) {
cerr << "new empty Button node\n";
node = new XMLNode (X_("Buttons"));
}

View File

@ -732,7 +732,7 @@ Editor::left_track_canvas (GdkEventCrossing */*ev*/)
{
DropDownKeys ();
within_track_canvas = false;
cerr << "left track canvas\n";
//cerr << "left track canvas\n";
set_entered_track (0);
set_entered_regionview (0);
reset_canvas_action_sensitivity (false);
@ -742,7 +742,7 @@ Editor::left_track_canvas (GdkEventCrossing */*ev*/)
bool
Editor::entered_track_canvas (GdkEventCrossing */*ev*/)
{
cerr << "entered track canvas\n";
//cerr << "entered track canvas\n";
within_track_canvas = true;
reset_canvas_action_sensitivity (true);
return FALSE;

View File

@ -2430,10 +2430,6 @@ Editor::point_trim (GdkEvent* event, framepos_t new_bound)
for (list<RegionView*>::const_iterator i = selection->regions.by_layer().begin();
i != selection->regions.by_layer().end(); ++i)
{
if ( (*i) == NULL){
cerr << "region view contains null region" << endl;
}
if (!(*i)->region()->locked()) {
(*i)->region()->clear_changes ();
(*i)->region()->trim_front (new_bound);

View File

@ -3202,15 +3202,10 @@ Editor::trim_region (bool front)
framepos_t where = get_preferred_edit_position();
RegionSelection rs = get_regions_from_selection_and_edit_point ();
cerr << "trim regions\n";
if (rs.empty()) {
cerr << " no regions\n";
return;
}
cerr << "where = " << where << endl;
begin_reversible_command (front ? _("trim front") : _("trim back"));
for (list<RegionView*>::const_iterator i = rs.by_layer().begin(); i != rs.by_layer().end(); ++i) {

View File

@ -367,7 +367,6 @@ EditorRouteGroups::button_press_event (GdkEventButton* ev)
case 12:
val = (*iter)[_columns.active_shared];
cerr << "set group active to " << !val << endl;
group->set_route_active (!val);
ret = true;
break;

View File

@ -264,7 +264,6 @@ Editor::set_selected_track_as_side_effect (Selection::Operation op)
case Selection::Extend:
selection->clear();
cerr << ("Editor::set_selected_track_as_side_effect case Selection::Add not yet implemented\n");
break;
}
}

View File

@ -109,8 +109,6 @@ KeyEditor::unbind ()
unbind_button.set_sensitive (false);
cerr << "trying to unbind\n";
if (i != model->children().end()) {
string path = (*i)[columns.path];

View File

@ -2909,7 +2909,7 @@ MidiRegionView::change_note_lengths (bool fine, bool shorter, Evoral::MusicalTim
delta = trackview.editor().get_grid_type_as_beats (success, _region->position());
if (!success) {
/* XXX cannot get grid type as beats ... should always be possible ... FIX ME */
cerr << "Grid type not available as beats - TO BE FIXED\n";
error << string_compose (_("programming error: %1"), "Grid type not available as beats - TO BE FIXED") << endmsg;
return;
}
}

View File

@ -861,7 +861,6 @@ void
MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool show)
{
if (param.type() == NullAutomation) {
cerr << "WARNING: Attempt to create NullAutomation child, ignoring" << endl;
return;
}
@ -874,8 +873,6 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
* since it will have been set visible by default.
*/
cerr << "show existing auto track: " << show << " noredraw " << no_redraw << endl;
if (existing->second->set_marked_for_display (show) && !no_redraw) {
request_redraw ();
}

View File

@ -59,7 +59,6 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT
string dirstr;
dirstr = s->source_search_path (type);
cerr << "Search path = " << dirstr << endl;
replace_all (dirstr, ":", "\n");
msg.set_justify (JUSTIFY_CENTER);

View File

@ -715,7 +715,7 @@ ArdourStartup::populate_session_templates ()
static bool
lost_name_entry_focus (GdkEventFocus*)
{
cerr << "lost focus\n";
// cerr << "lost focus\n";
return false;
}
@ -891,7 +891,7 @@ ArdourStartup::setup_new_session_page ()
void
ArdourStartup::new_name_mapped ()
{
cerr << "Grab new name focus\n";
// cerr << "Grab new name focus\n";
new_name_entry.grab_focus ();
}