Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59308 - branches/quickbook-1.5-spirit2/detail
From: daniel_james_at_[hidden]
Date: 2010-01-27 17:03:29


Author: danieljames
Date: 2010-01-27 17:03:28 EST (Wed, 27 Jan 2010)
New Revision: 59308
URL: http://svn.boost.org/trac/boost/changeset/59308

Log:
Remove some unused stuff.
Text files modified:
   branches/quickbook-1.5-spirit2/detail/actions.cpp | 93 --------------------------------
   branches/quickbook-1.5-spirit2/detail/actions.hpp | 116 ----------------------------------------
   branches/quickbook-1.5-spirit2/detail/actions_class.cpp | 7 --
   branches/quickbook-1.5-spirit2/detail/actions_class.hpp | 7 --
   4 files changed, 0 insertions(+), 223 deletions(-)

Modified: branches/quickbook-1.5-spirit2/detail/actions.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/actions.cpp (original)
+++ branches/quickbook-1.5-spirit2/detail/actions.cpp 2010-01-27 17:03:28 EST (Wed, 27 Jan 2010)
@@ -54,81 +54,6 @@
         ++error_count;
     }
 
- void phrase_action::operator()(unused_type, unused_type, unused_type) const
- {
- std::string str;
- phrase.swap(str);
- out << pre << str << post;
- }
-
- void header_action::operator()(iterator_range x, unused_type, unused_type) const
- {
- std::string str;
- phrase.swap(str);
-
- if (qbk_version_n < 103) // version 1.2 and below
- {
- out << "<anchor id=\""
- << section_id << '.'
- << detail::make_identifier(str.begin(), str.end())
- << "\" />"
- << pre << str << post
- ;
- }
- else // version 1.3 and above
- {
- std::string anchor = fully_qualified_id(library_id, qualified_section_id,
- detail::make_identifier(str.begin(), str.end()));
-
- out << "<anchor id=\"" << anchor << "\"/>"
- << pre
- << "<link linkend=\"" << anchor << "\">"
- << str
- << "</link>"
- << post
- ;
- }
- }
-
- void generic_header_action::operator()(iterator_range x, unused_type, unused_type) const
- {
- int level_ = section_level + 2; // section_level is zero-based. We need to use a
- // 0ne-based heading which is one greater
- // than the current. Thus: section_level + 2.
- if (level_ > 6) // The max is h6, clip it if it goes
- level_ = 6; // further than that
- std::string str;
- phrase.swap(str);
-
- std::string anchor = fully_qualified_id(library_id, qualified_section_id,
- detail::make_identifier(str.begin(), str.end()));
-
- out
- << "<anchor id=\"" << anchor << "\"/>"
- << "<bridgehead renderas=\"sect" << level_ << "\">"
- << "<link linkend=\"" << anchor << "\">"
- << str
- << "</link>"
- << "</bridgehead>"
- ;
- }
-
- void simple_phrase_action::operator()(iterator_range const& x, unused_type, unused_type) const
- {
- out << pre;
- if (quickbook::macro const* ptr = macro.find(x))
- {
- out << ptr->raw_markup;
- }
- else
- {
- iterator first = x.begin(), last = x.end();
- while (first != last)
- detail::print_char(*first++, out.get());
- }
- out << post;
- }
-
     void span::operator()(iterator_range x, unused_type, unused_type) const
     {
         iterator first = x.begin(), last = x.end();
@@ -216,24 +141,6 @@
         detail::print_char(*x.begin(), phrase.get());
     }
 
- void template_body_action::operator()(iterator_range x, unused_type, unused_type) const
- {
- BOOST_ASSERT(actions.template_info.size());
- if (actions.templates.find_top_scope(actions.template_info[0]))
- {
- boost::spirit::classic::file_position const pos = x.begin().get_position();
- detail::outerr(pos.file,pos.line)
- << "Template Redefinition: " << actions.template_info[0] << std::endl;
- ++actions.error_count;
- }
-
- actions.template_info.push_back(std::string(x.begin(), x.end()));
- actions.templates.add(
- actions.template_info[0]
- , template_symbol(actions.template_info, x.begin().get_position()));
- actions.template_info.clear();
- }
-
     void element_id_warning_action::operator()(iterator_range x, unused_type, unused_type) const
     {
         boost::spirit::classic::file_position const pos = x.begin().get_position();

Modified: branches/quickbook-1.5-spirit2/detail/actions.hpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/actions.hpp (original)
+++ branches/quickbook-1.5-spirit2/detail/actions.hpp 2010-01-27 17:03:28 EST (Wed, 27 Jan 2010)
@@ -75,110 +75,6 @@
         int& error_count;
     };
 
- struct phrase_action
- {
- // blurb, blockquote, preformatted, list_item,
- // unordered_list, ordered_list
-
- phrase_action(
- collector& out,
- collector& phrase,
- std::string const& pre,
- std::string const& post)
- : out(out)
- , phrase(phrase)
- , pre(pre)
- , post(post) {}
-
- void operator()(unused_type, unused_type, unused_type) const;
-
- collector& out;
- collector& phrase;
- std::string pre;
- std::string post;
- };
-
- struct header_action
- {
- // Handles paragraph, h1, h2, h3, h4, h5, h6,
-
- header_action(
- collector& out,
- collector& phrase,
- std::string const& library_id,
- std::string const& section_id,
- std::string const& qualified_section_id,
- std::string const& pre,
- std::string const& post)
- : out(out)
- , phrase(phrase)
- , library_id(library_id)
- , section_id(section_id)
- , qualified_section_id(qualified_section_id)
- , pre(pre)
- , post(post) {}
-
- void operator()(iterator_range, unused_type, unused_type) const;
-
- collector& out;
- collector& phrase;
- std::string const& library_id;
- std::string const& section_id;
- std::string const& qualified_section_id;
- std::string pre;
- std::string post;
- };
-
- struct generic_header_action
- {
- // Handles h
-
- generic_header_action(
- collector& out,
- collector& phrase,
- std::string const& library_id,
- std::string const& section_id,
- std::string const& qualified_section_id,
- int const& section_level)
- : out(out)
- , phrase(phrase)
- , library_id(library_id)
- , section_id(section_id)
- , qualified_section_id(qualified_section_id)
- , section_level(section_level) {}
-
- void operator()(iterator_range, unused_type, unused_type) const;
-
- collector& out;
- collector& phrase;
- std::string const& library_id;
- std::string const& section_id;
- std::string const& qualified_section_id;
- int const& section_level;
- };
-
- struct simple_phrase_action
- {
- // Handles simple text formats
-
- simple_phrase_action(
- collector& out
- , std::string const& pre
- , std::string const& post
- , macro_symbols const& macro)
- : out(out)
- , pre(pre)
- , post(post)
- , macro(macro) {}
-
- void operator()(iterator_range const&, unused_type, unused_type) const;
-
- collector& out;
- std::string pre;
- std::string post;
- macro_symbols const& macro;
- };
-
     struct span
     {
         // Decorates c++ code fragments
@@ -303,18 +199,6 @@
         syntax_highlight& syntax_p;
     };
 
- struct template_body_action
- {
- // Handles template definitions
-
- template_body_action(quickbook::actions& actions)
- : actions(actions) {}
-
- void operator()(iterator_range, unused_type, unused_type) const;
-
- quickbook::actions& actions;
- };
-
    struct element_id_warning_action
    {
        void operator()(iterator_range, unused_type, unused_type) const;

Modified: branches/quickbook-1.5-spirit2/detail/actions_class.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/actions_class.cpp (original)
+++ branches/quickbook-1.5-spirit2/detail/actions_class.cpp 2010-01-27 17:03:28 EST (Wed, 27 Jan 2010)
@@ -66,16 +66,9 @@
 
         , syntax_p(source_mode, *this)
         , code(out, phrase, syntax_p)
- , paragraph(out, phrase, paragraph_pre, paragraph_post)
         , plain_char(phrase)
         , raw_char(phrase)
 
- , template_body(*this)
- , url_pre(url_pre_)
- , url_post(url_post_)
- , link_pre(link_pre_)
- , link_post(link_post_)
-
         , xinclude(out, *this)
         , include(*this)
         , import(out, *this)

Modified: branches/quickbook-1.5-spirit2/detail/actions_class.hpp
==============================================================================
--- branches/quickbook-1.5-spirit2/detail/actions_class.hpp (original)
+++ branches/quickbook-1.5-spirit2/detail/actions_class.hpp 2010-01-27 17:03:28 EST (Wed, 27 Jan 2010)
@@ -98,16 +98,9 @@
 
         syntax_highlight syntax_p;
         code_action code;
- phrase_action paragraph;
         plain_char_action plain_char;
         raw_char_action raw_char;
 
- template_body_action template_body;
- char const* url_pre;
- char const* url_post;
- char const* link_pre;
- char const* link_post;
-
         element_id_warning_action element_id_warning;
         xinclude_action xinclude;
         include_action include;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk