diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-08-01 14:43:12 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-08-01 14:43:12 -0400 |
commit | 682ebad62bdc85df151ad0b81dc27cc9f3e71cec (patch) | |
tree | 3e283d18fa8609a1f98502a038b9388f8404285a /libs/ardour/port.cc | |
parent | 18c68bfd12130b8a3e95c99d3c0472c8b7f377bc (diff) |
full compilation and linking (coding not finished, will not run)
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 5aa6ad0ae7..571d227711 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -70,10 +70,6 @@ Port::Port (std::string const & n, DataType t, PortFlags f) assert (_name.find_first_of (':') == std::string::npos); - if (!port_engine.connected()) { - throw failed_constructor (); - } - if ((_port_handle = port_engine.register_port (_name, t, _flags)) == 0) { cerr << "Failed to register port \"" << _name << "\", reason is unknown from here\n"; throw failed_constructor (); @@ -124,14 +120,6 @@ Port::disconnect_all () bool Port::connected_to (std::string const & o) const { - if (!port_engine.connected()) { - /* in some senses, this answer isn't the right one all the time, - because we know about our connections and will re-establish - them when we reconnect to the port engine. - */ - return false; - } - return port_engine.connected_to (_port_handle, AudioEngine::instance()->make_port_name_non_relative (o)); } |