From a42d55487c0f70313ebccb043c571c8097b20093 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Thu, 6 Oct 2011 22:59:17 +0000
Subject: Remove unused BufferFactory member of ConnectionImpl.

git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3534 a436a847-0d15-0410-975c-d299462d15a1
---
 src/server/ConnectionImpl.cpp |  7 +++----
 src/server/ConnectionImpl.hpp | 10 ++++------
 src/server/events/Connect.cpp |  2 +-
 3 files changed, 8 insertions(+), 11 deletions(-)

(limited to 'src')

diff --git a/src/server/ConnectionImpl.cpp b/src/server/ConnectionImpl.cpp
index 9bb0d4f5..006a157d 100644
--- a/src/server/ConnectionImpl.cpp
+++ b/src/server/ConnectionImpl.cpp
@@ -41,11 +41,10 @@ namespace Server {
  * This handles both polyphonic and monophonic nodes, transparently to the
  * user (InputPort).
  */
-ConnectionImpl::ConnectionImpl(BufferFactory& bufs, PortImpl* src_port, PortImpl* dst_port)
-	: _queue(NULL)
-	, _bufs(bufs)
-	, _src_port(src_port)
+ConnectionImpl::ConnectionImpl(PortImpl* src_port, PortImpl* dst_port)
+	: _src_port(src_port)
 	, _dst_port(dst_port)
+	, _queue(NULL)
 	, _pending_disconnection(false)
 {
 	assert(src_port);
diff --git a/src/server/ConnectionImpl.hpp b/src/server/ConnectionImpl.hpp
index 35441d7d..36eb545f 100644
--- a/src/server/ConnectionImpl.hpp
+++ b/src/server/ConnectionImpl.hpp
@@ -59,7 +59,7 @@ class ConnectionImpl : public  Raul::Deletable
                      , public  boost::intrusive::list_base_hook<>
 {
 public:
-	ConnectionImpl(BufferFactory& bufs, PortImpl* src_port, PortImpl* dst_port);
+	ConnectionImpl(PortImpl* src_port, PortImpl* dst_port);
 
 	PortImpl* src_port() const { return _src_port; }
 	PortImpl* dst_port() const { return _dst_port; }
@@ -97,12 +97,10 @@ public:
 protected:
 	void dump() const;
 
+	PortImpl* const   _src_port;
+	PortImpl* const   _dst_port;
 	Raul::RingBuffer* _queue;
-
-	BufferFactory&     _bufs;
-	PortImpl* const    _src_port;
-	PortImpl* const    _dst_port;
-	bool               _pending_disconnection;
+	bool              _pending_disconnection;
 };
 
 } // namespace Server
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp
index edd004c3..551b3a29 100644
--- a/src/server/events/Connect.cpp
+++ b/src/server/events/Connect.cpp
@@ -126,7 +126,7 @@ Connect::pre_process()
 	}
 
 	_connection = SharedPtr<ConnectionImpl>(
-			new ConnectionImpl(*_engine.buffer_factory(), _src_output_port, _dst_input_port));
+		new ConnectionImpl(_src_output_port, _dst_input_port));
 
 	rlock.release();
 
-- 
cgit v1.2.1