]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.C
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / filetools.C
index 0fb5be8df319c427ef4588d3314b1170816cf0fb..287a7e5860feac6f67e59f036beadfb6197866d3 100644 (file)
 #include <utility>
 #include <fstream>
 
-#if 0
-#ifdef HAVE_SSTREAM
-#include <sstream>
-#else
-#include <strstream>
-#endif
-#else
 #include "Lsstream.h"
-#endif
 
 #ifdef __GNUG__
 #pragma implementation "filetools.h"
@@ -743,24 +735,11 @@ string const GetFileContents(string const & fname)
        FileInfo finfo(fname);
        if (finfo.exist()) {
                ifstream ifs(fname.c_str());
-//#ifdef HAVE_SSTREAM
                std::ostringstream ofs;
-//#else
-//#warning The rumour goes that this might leak, but who really cares?
-//             ostrstream ofs;
-//#endif
                if (ifs && ofs) {
                        ofs << ifs.rdbuf();
                        ifs.close();
-//#ifdef HAVE_SSTREAM
                        return ofs.str().c_str();
-//#else
-//                     ofs << '\0';
-//                     char const * tmp = ofs.str();
-//                     string ret(tmp);
-//                     delete[] tmp;
-//                     return ret;
-//#endif
                }
        }
        lyxerr << "LyX was not able to read file '" << fname << "'" << endl;