summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-26 15:24:20 +0200
committerDavid Robillard <d@drobilla.net>2017-03-26 18:13:33 +0200
commitba3e956f5be02730368b75fbec704e75b3f036da (patch)
tree1163df60cc7f3279cf940ccd17d9290e7f0da317 /ingen
parent6268bb2accfdc0dcad6cb8b54ba56ec64609d474 (diff)
downloadingen-ba3e956f5be02730368b75fbec704e75b3f036da.tar.gz
ingen-ba3e956f5be02730368b75fbec704e75b3f036da.tar.bz2
ingen-ba3e956f5be02730368b75fbec704e75b3f036da.zip
Remove Node::graph_type() method and GraphType enum
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Node.hpp7
-rw-r--r--ingen/client/BlockModel.hpp2
-rw-r--r--ingen/client/GraphModel.hpp2
-rw-r--r--ingen/client/PortModel.hpp2
4 files changed, 0 insertions, 13 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp
index e0fcf338..cde50f63 100644
--- a/ingen/Node.hpp
+++ b/ingen/Node.hpp
@@ -49,12 +49,6 @@ class Store;
class INGEN_API Node : public Resource
{
public:
- enum class GraphType {
- GRAPH,
- BLOCK,
- PORT
- };
-
typedef std::pair<const Node*, const Node*> ArcsKey;
typedef std::map< ArcsKey, SPtr<Arc> > Arcs;
@@ -71,7 +65,6 @@ public:
virtual bool save_state(const std::string& dir) const { return false; }
// All objects
- virtual GraphType graph_type() const = 0;
virtual const Raul::Path& path() const = 0;
virtual const Raul::Symbol& symbol() const = 0;
diff --git a/ingen/client/BlockModel.hpp b/ingen/client/BlockModel.hpp
index e689414c..0fcfce36 100644
--- a/ingen/client/BlockModel.hpp
+++ b/ingen/client/BlockModel.hpp
@@ -49,8 +49,6 @@ public:
BlockModel(const BlockModel& copy);
virtual ~BlockModel();
- GraphType graph_type() const { return Node::GraphType::BLOCK; }
-
typedef std::vector< SPtr<const PortModel> > Ports;
SPtr<const PortModel> get_port(const Raul::Symbol& symbol) const;
diff --git a/ingen/client/GraphModel.hpp b/ingen/client/GraphModel.hpp
index 52c5ed2c..94b365fc 100644
--- a/ingen/client/GraphModel.hpp
+++ b/ingen/client/GraphModel.hpp
@@ -36,8 +36,6 @@ class INGEN_API GraphModel : public BlockModel
public:
/* WARNING: Copy constructor creates a shallow copy WRT connections */
- GraphType graph_type() const { return Node::GraphType::GRAPH; }
-
SPtr<ArcModel> get_arc(const Ingen::Node* tail,
const Ingen::Node* head);
diff --git a/ingen/client/PortModel.hpp b/ingen/client/PortModel.hpp
index f03e5bc1..b29ce652 100644
--- a/ingen/client/PortModel.hpp
+++ b/ingen/client/PortModel.hpp
@@ -40,8 +40,6 @@ class INGEN_API PortModel : public ObjectModel
public:
enum class Direction { INPUT, OUTPUT };
- GraphType graph_type() const { return Node::GraphType::PORT; }
-
bool supports(const URIs::Quark& value_type) const;
inline uint32_t index() const { return _index; }