From 9e2a757e026abf79d0cdcf12a18796fa89973356 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 Dec 2006 22:32:31 +0000 Subject: Serialization of patch ports. git-svn-id: http://svn.drobilla.net/lad/ingen@216 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/libs/client/Store.cpp') diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 75667ee6..69358d0c 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -378,17 +378,9 @@ Store::new_node_event(const string& plugin_uri, const Path& node_path, bool is_p void Store::new_port_event(const Path& path, const string& type, bool is_output) { - // FIXME: this sucks - - PortModel::Type ptype = PortModel::CONTROL; - if (type == "AUDIO") ptype = PortModel::AUDIO; - else if (type == "CONTROL") ptype = PortModel::CONTROL; - else if (type== "MIDI") ptype = PortModel::MIDI; - else cerr << "[Store] WARNING: Unknown port type received (" << type << ")" << endl; - PortModel::Direction pdir = is_output ? PortModel::OUTPUT : PortModel::INPUT; - SharedPtr p(new PortModel(path, ptype, pdir)); + SharedPtr p(new PortModel(path, type, pdir)); add_object(p); if (p->parent()) resolve_connection_orphans(p); -- cgit v1.2.1