$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r75615 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-11-22 18:45:53
Author: danieljames
Date: 2011-11-22 18:45:53 EST (Tue, 22 Nov 2011)
New Revision: 75615
URL: http://svn.boost.org/trac/boost/changeset/75615
Log:
Quickbook: Remove `qbk_value`.
Text files modified: 
   branches/quickbook-dev/tools/quickbook/src/values.cpp |    71 ----------------------------------------
   branches/quickbook-dev/tools/quickbook/src/values.hpp |     1                                         
   2 files changed, 0 insertions(+), 72 deletions(-)
Modified: branches/quickbook-dev/tools/quickbook/src/values.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/values.cpp	(original)
+++ branches/quickbook-dev/tools/quickbook/src/values.cpp	2011-11-22 18:45:53 EST (Tue, 22 Nov 2011)
@@ -317,25 +317,6 @@
             std::string value_;
         };
     
-        struct value_qbk_string_impl : public value_node
-        {
-        public:
-            explicit value_qbk_string_impl(std::string const&, unsigned qbk_version, value::tag_type);
-            explicit value_qbk_string_impl(file const&, value::tag_type);
-        private:
-            char const* type_name() const { return "quickbook"; }
-
-            virtual ~value_qbk_string_impl();
-            virtual value_node* clone() const;
-            virtual file const* get_file() const;
-            virtual string_iterator get_position() const;
-            virtual string_ref get_quickbook() const;
-            virtual bool empty() const;
-            virtual bool equals(value_node*) const;
-
-            file fake_file_;
-        };
-
         struct value_qbk_ref_impl : public value_node
         {
         public:
@@ -426,53 +407,6 @@
             }
         }
 
-        // value_qbk_string_impl
-    
-        value_qbk_string_impl::value_qbk_string_impl(
-                std::string const& v,
-                unsigned qbk_version,
-                value::tag_type tag)
-            : value_node(tag)
-            , fake_file_("(generated code)", v, qbk_version)
-        {
-        }
-
-        value_qbk_string_impl::value_qbk_string_impl(
-                file const& f, value::tag_type tag)
-            : value_node(tag)
-            , fake_file_(f)
-        {
-        }
-    
-        value_qbk_string_impl::~value_qbk_string_impl()
-        {}
-    
-        value_node* value_qbk_string_impl::clone() const
-        {
-            return new value_qbk_string_impl(fake_file_, tag_);
-        }
-
-        file const* value_qbk_string_impl::get_file() const
-            { return &fake_file_; }
-
-        string_iterator value_qbk_string_impl::get_position() const
-            { return fake_file_.source.begin(); }
-
-        string_ref value_qbk_string_impl::get_quickbook() const
-            { return string_ref(fake_file_.source); }
-
-        bool value_qbk_string_impl::empty() const
-            { return fake_file_.source.empty(); }
-
-        bool value_qbk_string_impl::equals(value_node* other) const {
-            try {
-                return fake_file_.source == other->get_quickbook();
-            }
-            catch(value_undefined_method&) {
-                return false;
-            }
-        }
-
         // value_qbk_ref_impl
     
         value_qbk_ref_impl::value_qbk_ref_impl(
@@ -580,11 +514,6 @@
         return value(new detail::value_qbk_ref_impl(f, x, y, t));
     }
 
-    value qbk_value(std::string const& x, unsigned qbk_version, value::tag_type t)
-    {
-        return value(new detail::value_qbk_string_impl(x, qbk_version, t));
-    }
-
     value bbk_value(std::string const& x, value::tag_type t)
     {
         return value(new detail::value_string_impl(x, t));
Modified: branches/quickbook-dev/tools/quickbook/src/values.hpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/values.hpp	(original)
+++ branches/quickbook-dev/tools/quickbook/src/values.hpp	2011-11-22 18:45:53 EST (Tue, 22 Nov 2011)
@@ -240,7 +240,6 @@
 
     // Boostbook and quickbook strings
     value qbk_value_ref(file const*, string_iterator, string_iterator, value::tag_type = value::default_tag);
-    value qbk_value(std::string const&, unsigned qbk_version, value::tag_type = value::default_tag);
     value bbk_value(std::string const&, value::tag_type = value::default_tag);
     value qbk_bbk_value(file const*, string_iterator, string_iterator, std::string const&,
             value::tag_type = value::default_tag);