From 4c374763f7a13c1062dc99f4b68f0ee61c952ca0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Apr 2010 14:05:10 +0200 Subject: Edges don't have annotations --- xsd-frontend/semantic-graph/elements.cxx | 8 -------- xsd-frontend/semantic-graph/elements.hxx | 24 ------------------------ 2 files changed, 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 Boolean is_a () const @@ -221,19 +205,11 @@ namespace XSDFrontend friend class Bits::Graph; Edge () - : annotates_ (0) { } - Void - add_edge_right (Annotates& a) - { - annotates_ = &a; - } - private: mutable Context context_; - Annotates* annotates_; }; inline Boolean -- cgit v1.1