summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Plugin.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-15 19:15:11 +0000
committerDavid Robillard <d@drobilla.net>2012-05-15 19:15:11 +0000
commitdc1680b0b1338b7edbcbff89fe77b0e1c14017a3 (patch)
tree58668a462e21132a49662fbbd61b34ecb63ee772 /src/server/LV2Plugin.cpp
parent49b9a38100f66c66aee6531bf83e0527ea0386b5 (diff)
downloadingen-dc1680b0b1338b7edbcbff89fe77b0e1c14017a3.tar.gz
ingen-dc1680b0b1338b7edbcbff89fe77b0e1c14017a3.tar.bz2
ingen-dc1680b0b1338b7edbcbff89fe77b0e1c14017a3.zip
Remove unused PluginImpl stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4422 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Plugin.cpp')
-rw-r--r--src/server/LV2Plugin.cpp32
1 files changed, 6 insertions, 26 deletions
diff --git a/src/server/LV2Plugin.cpp b/src/server/LV2Plugin.cpp
index 4998e821..d05690b9 100644
--- a/src/server/LV2Plugin.cpp
+++ b/src/server/LV2Plugin.cpp
@@ -68,18 +68,15 @@ LV2Plugin::instantiate(BufferFactory& bufs,
PatchImpl* parent,
Engine& engine)
{
- const SampleCount srate = engine.driver()->sample_rate();
+ LV2Node* n = new LV2Node(
+ this, name, polyphonic, parent, engine.driver()->sample_rate());
- load(); // FIXME: unload at some point
-
- LV2Node* n = new LV2Node(this, name, polyphonic, parent, srate);
-
- if ( ! n->instantiate(bufs) ) {
+ if (!n->instantiate(bufs)) {
delete n;
- n = NULL;
+ return NULL;
+ } else {
+ return n;
}
-
- return n;
}
void
@@ -88,22 +85,5 @@ LV2Plugin::lilv_plugin(const LilvPlugin* p)
_lilv_plugin = p;
}
-const std::string&
-LV2Plugin::library_path() const
-{
- static const std::string empty_string;
- if (_library_path.empty()) {
- const LilvNode* n = lilv_plugin_get_library_uri(_lilv_plugin);
- if (n) {
- _library_path = lilv_uri_to_path(lilv_node_as_uri(n));
- } else {
- Raul::warn << uri() << " has no library path" << std::endl;
- return empty_string;
- }
- }
-
- return _library_path;
-}
-
} // namespace Server
} // namespace Ingen