aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-19 02:46:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-19 02:46:32 +0000
commit816a7e448592c0719934b21c810195195d0940f1 (patch)
tree92052323a6cf50bc5306085060284cea8aafc688
parent4f672a6d76b33508d51eae39040f5e35c751fef6 (diff)
downloadpaludis-816a7e448592c0719934b21c810195195d0940f1.tar.gz
paludis-816a7e448592c0719934b21c810195195d0940f1.tar.xz
Remove composite_visitor, we don't use it any more.
-rw-r--r--paludis/composite_visitor_pattern-impl.hh41
-rw-r--r--paludis/composite_visitor_pattern.cc21
-rw-r--r--paludis/composite_visitor_pattern.hh55
3 files changed, 0 insertions, 117 deletions
diff --git a/paludis/composite_visitor_pattern-impl.hh b/paludis/composite_visitor_pattern-impl.hh
deleted file mode 100644
index d3c1b0c..0000000
--- a/paludis/composite_visitor_pattern-impl.hh
+++ /dev/null
@@ -1,41 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2005, 2006 Ciaran McCreesh <ciaranm@gentoo.org>
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef PALUDIS_GUARD_PALUDIS_COMPOSITE_VISITOR_PATTERN_IMPL_HH
-#define PALUDIS_GUARD_PALUDIS_COMPOSITE_VISITOR_PATTERN_IMPL_HH 1
-
-#include <paludis/visitor_pattern-impl.hh>
-
-namespace paludis
-{
- template <typename OurType_, typename CNodeType_>
- void
- VisitsComposite<OurType_, CNodeType_>::visit(const CNodeType_ * const n)
- {
- enter(n);
-
- typename CNodeType_::Iterator i(n->begin()), e(n->end());
- for ( ; i != e ; ++i)
- (*i)->accept(static_cast<OurType_ *>(this));
-
- leave(n);
- }
-}
-
-#endif
diff --git a/paludis/composite_visitor_pattern.cc b/paludis/composite_visitor_pattern.cc
deleted file mode 100644
index 08b162a..0000000
--- a/paludis/composite_visitor_pattern.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2005, 2006 Ciaran McCreesh <ciaranm@gentoo.org>
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "composite_visitor_pattern.hh"
-#include "composite_visitor_pattern-impl.hh"
diff --git a/paludis/composite_visitor_pattern.hh b/paludis/composite_visitor_pattern.hh
deleted file mode 100644
index 5d76895..0000000
--- a/paludis/composite_visitor_pattern.hh
+++ /dev/null
@@ -1,55 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2005, 2006 Ciaran McCreesh <ciaranm@gentoo.org>
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef PALUDIS_GUARD_PALUDIS_COMPOSITE_VISITOR_PATTERN_HH
-#define PALUDIS_GUARD_PALUDIS_COMPOSITE_VISITOR_PATTERN_HH 1
-
-#include <paludis/visitor_pattern.hh>
-
-namespace paludis
-{
- /**
- * Declares that a class can visit a node of type NodeType_, which is
- * a composite node, and that it should use enter and leave rather than
- * visit.
- *
- * \ingroup Utility
- */
- template <typename OurType_, typename CNodeType_>
- class VisitsComposite : public virtual Visits<CNodeType_>
- {
- public:
- /**
- * Implement visit to call enter, then our children, then leave.
- */
- virtual void visit(const CNodeType_ * const n);
-
- /**
- * Interface: enter a node.
- */
- virtual void enter(const CNodeType_ * const n) = 0;
-
- /**
- * Interface: leave a node.
- */
- virtual void leave(const CNodeType_ * const n) = 0;
- };
-}
-
-#endif