diff options
author | David Robillard <d@drobilla.net> | 2012-05-17 21:56:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-17 21:56:33 +0000 |
commit | da03dbe262f38fa0cc5eaacd176a4d8efe5029db (patch) | |
tree | 3e5279413eb48cff56406e2071b012ef3c3d5dff | |
parent | 34152c9d4c2f4681bb48889c6365e36b9e8bcc8b (diff) | |
download | ingen-da03dbe262f38fa0cc5eaacd176a4d8efe5029db.tar.gz ingen-da03dbe262f38fa0cc5eaacd176a4d8efe5029db.tar.bz2 ingen-da03dbe262f38fa0cc5eaacd176a4d8efe5029db.zip |
Remove pointless state and constructor from Parser.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4426 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | ingen/serialisation/Parser.hpp | 5 | ||||
-rw-r--r-- | src/serialisation/Parser.cpp | 5 | ||||
-rw-r--r-- | src/serialisation/serialisation.cpp | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/ingen/serialisation/Parser.hpp b/ingen/serialisation/Parser.hpp index 5253a3e4..0240dc9d 100644 --- a/ingen/serialisation/Parser.hpp +++ b/ingen/serialisation/Parser.hpp @@ -45,7 +45,7 @@ namespace Serialisation { */ class Parser { public: - explicit Parser(Shared::World& world); + explicit Parser() {} virtual ~Parser() {} @@ -67,9 +67,6 @@ public: boost::optional<Raul::Path> parent = boost::optional<Raul::Path>(), boost::optional<Raul::Symbol> symbol = boost::optional<Raul::Symbol>(), boost::optional<Properties> data = boost::optional<Properties>()); - -private: - Shared::World& _world; }; } // namespace Serialisation diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index 5406ab24..3033f538 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -558,11 +558,6 @@ parse(Ingen::Shared::World* world, return boost::optional<Path>(); } -Parser::Parser(Ingen::Shared::World& world) - : _world(world) -{ -} - /** Parse a patch from RDF into a Interface (engine or client). * @return whether or not load was successful. */ diff --git a/src/serialisation/serialisation.cpp b/src/serialisation/serialisation.cpp index c5144600..b425e4ad 100644 --- a/src/serialisation/serialisation.cpp +++ b/src/serialisation/serialisation.cpp @@ -25,7 +25,7 @@ using namespace Ingen; struct IngenSerialisationModule : public Ingen::Shared::Module { virtual void load(Ingen::Shared::World* world) { world->set_parser(SharedPtr<Serialisation::Parser>( - new Serialisation::Parser(*world))); + new Serialisation::Parser())); world->set_serialiser(SharedPtr<Serialisation::Serialiser>( new Serialisation::Serialiser(*world))); } |