$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r76641 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2012-01-22 18:05:18
Author: danieljames
Date: 2012-01-22 18:05:17 EST (Sun, 22 Jan 2012)
New Revision: 76641
URL: http://svn.boost.org/trac/boost/changeset/76641
Log:
Quickbook: Remove `get_file_type` - it isn't used.
Text files modified: 
   branches/quickbook-dev/tools/quickbook/src/utils.cpp |    19 -------------------                     
   branches/quickbook-dev/tools/quickbook/src/utils.hpp |    11 -----------                             
   2 files changed, 0 insertions(+), 30 deletions(-)
Modified: branches/quickbook-dev/tools/quickbook/src/utils.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/utils.cpp	(original)
+++ branches/quickbook-dev/tools/quickbook/src/utils.cpp	2012-01-22 18:05:17 EST (Sun, 22 Jan 2012)
@@ -62,23 +62,4 @@
         }
         return uri;
     }
-    
-    file_type get_file_type(std::string const& extension)
-    {
-        static std::map<std::string, file_type> ftypes;
-        if (ftypes.empty())
-        {
-            // init the map of types
-            ftypes["cpp"] = cpp_file;
-            ftypes["hpp"] = cpp_file;
-            ftypes["h"] = cpp_file;
-            ftypes["c"] = cpp_file;
-            ftypes["cxx"] = cpp_file;
-            ftypes["hxx"] = cpp_file;
-            ftypes["ipp"] = cpp_file;
-            ftypes["py"] = python_file;
-        }
-        return ftypes[extension];
-    }
-
 }}
Modified: branches/quickbook-dev/tools/quickbook/src/utils.hpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/utils.hpp	(original)
+++ branches/quickbook-dev/tools/quickbook/src/utils.hpp	2012-01-22 18:05:17 EST (Sun, 22 Jan 2012)
@@ -33,17 +33,6 @@
     }
 
     std::string escape_uri(std::string uri);
-
-    // given a file extension, return the type of the source file
-    // we'll have an internal database for known file types.
-
-    enum file_type
-    {
-        cpp_file
-      , python_file
-    };
-
-    file_type get_file_type(std::string const& extension);
 }}
 
 #endif // BOOST_SPIRIT_QUICKBOOK_UTILS_HPP