From da03dbe262f38fa0cc5eaacd176a4d8efe5029db Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 May 2012 21:56:33 +0000 Subject: Remove pointless state and constructor from Parser. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4426 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/serialisation/Parser.hpp | 5 +---- src/serialisation/Parser.cpp | 5 ----- 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 parent = boost::optional(), boost::optional symbol = boost::optional(), boost::optional data = boost::optional()); - -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(); } -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( - new Serialisation::Parser(*world))); + new Serialisation::Parser())); world->set_serialiser(SharedPtr( new Serialisation::Serialiser(*world))); } -- cgit v1.2.1