diff base/Layer.cpp @ 39:e1a0cf2dcc79

* Fix a crash in PortAudio output for mono data * Don't construct a chromagram in TonalChangeDetect plugin ctor * Update layer show/hide/dormancy for multi-view-capable layers -- the dormancy concept doesn't really work with these constraints any more
author Chris Cannam
date Fri, 03 Mar 2006 17:52:21 +0000
parents 935a2419a77c
children b8aae4f883b7
line wrap: on
line diff
--- a/base/Layer.cpp	Fri Mar 03 16:56:20 2006 +0000
+++ b/base/Layer.cpp	Fri Mar 03 17:52:21 2006 +0000
@@ -15,18 +15,12 @@
 #include "layer/LayerFactory.h" //!!! shouldn't be including this here -- does that suggest we need to move this into layer/ ?
 #include "PlayParameterRepository.h"
 
-Layer::Layer() :
-    m_dormant(false)
+Layer::Layer()
 {
-//    m_view = w;
-
-    // Subclass must call this:
-//    w->addLayer(this);
 }
 
 Layer::~Layer()
 {
-//    m_view->removeLayer(this);
 }
 
 QString
@@ -42,21 +36,7 @@
     QObject::setObjectName(name);
     emit layerNameChanged();
 }
-/*
-int
-Layer::getXForFrame(long frame) const
-{
-    if (m_view) return m_view->getXForFrame(frame);
-    else return 0;
-}
 
-long
-Layer::getFrameForX(int x) const
-{
-    if (m_view) return m_view->getFrameForX(x);
-    else return 0;
-}
-*/
 QString
 Layer::toXmlString(QString indent, QString extraAttributes) const
 {