aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-04-15 14:05:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-04-15 14:05:10 +0200
commit4c374763f7a13c1062dc99f4b68f0ee61c952ca0 (patch)
tree65b98455e45d57b2c0c7b474a6e410b522d786ad
parent4c174428379af308926ec70bc5b58539a1863abf (diff)
Edges don't have annotations
-rw-r--r--xsd-frontend/semantic-graph/elements.cxx8
-rw-r--r--xsd-frontend/semantic-graph/elements.hxx24
2 files changed, 0 insertions, 32 deletions
diff --git a/xsd-frontend/semantic-graph/elements.cxx b/xsd-frontend/semantic-graph/elements.cxx
index 6b174e2..9027282 100644
--- a/xsd-frontend/semantic-graph/elements.cxx
+++ b/xsd-frontend/semantic-graph/elements.cxx
@@ -14,14 +14,6 @@ namespace XSDFrontend
{
namespace SemanticGraph
{
- // Edge
- //
- Annotation& Edge::
- annotation ()
- {
- return annotates_->annotation ();
- }
-
// Node
//
Annotation& Node::
diff --git a/xsd-frontend/semantic-graph/elements.hxx b/xsd-frontend/semantic-graph/elements.hxx
index f59961b..4ce7fd6 100644
--- a/xsd-frontend/semantic-graph/elements.hxx
+++ b/xsd-frontend/semantic-graph/elements.hxx
@@ -194,22 +194,6 @@ namespace XSDFrontend
}
public:
- Boolean
- annotated_p () const
- {
- return annotates_ != 0;
- }
-
- Annotates&
- annotated () const
- {
- return *annotates_;
- }
-
- Annotation&
- annotation ();
-
- public:
template <typename X>
Boolean
is_a () const
@@ -221,19 +205,11 @@ namespace XSDFrontend
friend class Bits::Graph<Node, Edge>;
Edge ()
- : annotates_ (0)
{
}
- Void
- add_edge_right (Annotates& a)
- {
- annotates_ = &a;
- }
-
private:
mutable Context context_;
- Annotates* annotates_;
};
inline Boolean