summaryrefslogtreecommitdiff
path: root/libs/ardour/port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-10-16 21:01:12 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-10-16 21:01:12 +0000
commitf3cf31009a3b52fa126356b6f826958393c6a956 (patch)
treefa5e9af4e1537acfa11dfd3b4f29b0c7463c5ad1 /libs/ardour/port.cc
parent14dcc3f0170f8c723bcef0a59562adce0e8e7596 (diff)
virtualize Port object; clean up automation tracks from track deletion
git-svn-id: svn://localhost/ardour2/trunk@2556 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r--libs/ardour/port.cc30
1 files changed, 3 insertions, 27 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc
index d9c93c250b..bfc1eaf279 100644
--- a/libs/ardour/port.cc
+++ b/libs/ardour/port.cc
@@ -22,20 +22,10 @@
using namespace ARDOUR;
using namespace std;
-Port::Port (jack_port_t *p)
- : _port (p)
- , _metering(0)
- , _last_monitor(false)
+Port::Port ()
+ : _metering (0)
+ , _last_monitor (false)
{
- if (_port == 0) {
- throw failed_constructor();
- }
-
- _flags = JackPortFlags (jack_port_flags (_port));
- _type = jack_port_type (_port);
- _name = jack_port_name (_port);
-
- reset ();
}
void
@@ -43,17 +33,3 @@ Port::reset ()
{
_last_monitor = false;
}
-
-int
-Port::set_name (string str)
-{
- int ret;
-
- if ((ret = jack_port_set_name (_port, str.c_str())) == 0) {
- _name = str;
- }
-
- return ret;
-}
-
-