From e21c3b36f63c176f44128a5e9c0551cb3f1871fb Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Sun, 19 Mar 2006 21:59:16 +0000 Subject: [PATCH] removed save and load to text archive functionality to keep x86_64 build happy --- include/mapnik.hpp | 3 --- src/mapnik.cpp | 18 ------------------ 2 files changed, 21 deletions(-) diff --git a/include/mapnik.hpp b/include/mapnik.hpp index bf722c62c..ebf33d597 100644 --- a/include/mapnik.hpp +++ b/include/mapnik.hpp @@ -74,10 +74,7 @@ namespace mapnik { void save_to_xml(Map const& map,const char* filename); - void save_to_text(Map const& map,const char* filename); - void load_from_xml(Map & map, const char * filename); - void load_from_text(Map & map, const char * filename); } #endif //MAPNIK_HPP diff --git a/src/mapnik.cpp b/src/mapnik.cpp index dd7f76487..1a93ba2fd 100644 --- a/src/mapnik.cpp +++ b/src/mapnik.cpp @@ -19,8 +19,6 @@ //$Id$ #include -#include -#include #include #include #include "mapnik.hpp" @@ -34,14 +32,6 @@ namespace mapnik boost::archive::xml_oarchive oa(ofs); oa << boost::serialization::make_nvp("map",m); } - - void save_to_text(Map const& m,const char* filename) - { - std::ofstream ofs(filename); - assert(ofs.good()); - boost::archive::text_oarchive oa(ofs); - oa << m; - } void load_from_xml(Map & m,const char* filename) { @@ -50,14 +40,6 @@ namespace mapnik boost::archive::xml_iarchive ia(ifs); ia >> boost::serialization::make_nvp("map",m); } - - void load_from_text(Map & m,const char* filename) - { - std::ifstream ifs(filename); - assert(ifs.good()); - boost::archive::text_iarchive ia(ifs); - ia >> m; - } }