remove, convert, comment several cerr statements
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 May 2012 12:57:05 +0000 (12:57 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 May 2012 12:57:05 +0000 (12:57 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12378 d708f5d6-7413-0410-9779-e7cbd77b26cf

15 files changed:
gtk2_ardour/actions.cc
gtk2_ardour/ardour_ui.cc
gtk2_ardour/audio_time_axis.cc
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/editor.cc
gtk2_ardour/editor_canvas.cc
gtk2_ardour/editor_mouse.cc
gtk2_ardour/editor_ops.cc
gtk2_ardour/editor_route_groups.cc
gtk2_ardour/editor_selection.cc
gtk2_ardour/keyeditor.cc
gtk2_ardour/midi_region_view.cc
gtk2_ardour/midi_time_axis.cc
gtk2_ardour/missing_file_dialog.cc
gtk2_ardour/startup.cc

index a1bdcdb36e391f1fd8d184d516d9071ce07437c1..0db4831e6fe3d8ba5a5aa29781d69b93651c1ec8 100644 (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";
        }
 }
 
index 8063164eb55a5a701cb90b01224c634fd7438553..d54ae5e291c8d48333616b5ac5647c07c7d1cb3f 100644 (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;
                }
        }
index eca908eeb41d6922fe036724880a09a84efdc03e..a34d6421a25bcd1cbee552d2f3f3663355b59c7b 100644 (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;
        }
 
index 3332a066d9c4b2a45d66b4d861b60f846e5183ab..e0d53e170770c473065987527a5e610e7de778c6 100644 (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) {
index bf70e6ac7d9611796fff65f913146ba52be30da9..0ba5f4054c46375a69c5160b6fadc1b486e5af51 100644 (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"));
        }
 
index 76b41280c2d2da5c697293b979a9c50761035635..9e43fcc35c5b056cf1593201d9bbaeac8a2d1c36 100644 (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;
index d7d1c342806d02168fc29b142b4737048052392d..7f4445652a3aa3a36c314eab6f8e40a84bd712c7 100644 (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);
index a8f1d1f6d7b2e28bd1c53db19fe1fbade8422a3a..d6cae9a8e29f85eb5087e6a9bf09ff103bb87248 100644 (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) {
index 2fd08e7609651024e81fc3f68efdef91f6525d69..ba170a680d4b4ab1d807f7df6241ccdb77c1c32a 100644 (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;
index 20ab6673a8702f5cd6a5488565bd03e3de1d83e8..8e2b668375e05fef8a489aff4e13a21aba1a9f81 100644 (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;
        }
 }
index 0d2cd989423cb0571eecfc75e6954a505b504da6..055a9bcae06cb806a4f4a039e617f7f04fa40094 100644 (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];
 
index 76db1a7b69b9b82758eff591b59820d89324226e..142b6c6988b1901b595189f3d983579f3cba490b 100644 (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;
                        }
                }
index 3bd67af9a0b74e831f598a70df5fe386732bfcc8..f38913fe31af5fb6f99b35c9102a325d7bf85cf2 100644 (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 ();
                }
index 66085217d2a0d07cd66950e82cf9661af429d874..54b20b547b88f41a1be6044a41ffbf737a2bee50 100644 (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);
index 483512e8cd90e66af0630312c4253fceae9072ec..1c0ddfa6b4c11865cd53d08c4799029e7bbed54c 100644 (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 ();
 }