Remove some debug code.
authorCarl Hetherington <cth@carlh.net>
Wed, 17 Jan 2018 00:55:22 +0000 (00:55 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 17 Jan 2018 00:55:22 +0000 (00:55 +0000)
src/wx/content_sub_panel.cc

index 781d3b3309b64cc35fb611fd11bbc2423bc560bf..e0e0cd12bbc2372a6b5f2932c06c22f9b482fac6 100644 (file)
@@ -44,18 +44,6 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
 void
 ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent> dcp, bool can_reference, list<string> why_not) const
 {
-       /* XXX: just for debugging */
-       if (dcp) {
-               dcp->film()->log()->log (
-                       String::compose (
-                               "setup_refer_button for %1; %2 %3",
-                               dcp->path(0).string(),
-                               int(can_reference),
-                               int(why_not.size())),
-                       LogEntry::TYPE_GENERAL
-                       );
-       }
-
        button->Enable (can_reference);
 
        wxString s;
@@ -68,14 +56,5 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, shared_ptr<DCPContent>
                }
        }
 
-       /* XXX: more debugging */
-       if (dcp) {
-               if (!s.IsEmpty()) {
-                       dcp->film()->log()->log (String::compose ("setting tooltip to %1", wx_to_std (s)), LogEntry::TYPE_GENERAL);
-               } else {
-                       dcp->film()->log()->log ("clearing tooltip", LogEntry::TYPE_GENERAL);
-               }
-       }
-
        button->SetToolTip (s);
 }