enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / recent_sessions.cc
index 22244c80ba7ae5f6a881c92fcf725cbb6a93509e..fd0b9b1b1d3127f84ae0edd9210e285ca04786a2 100644 (file)
 
 #include <cstring>
 #include <cerrno>
-#include <fstream>
-#include <iostream>
 #include <sstream>
 #include <algorithm>
 
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 #include <glibmm/miscutils.h>
 
 #include "pbd/error.h"
@@ -33,7 +31,7 @@
 #include "ardour/filesystem_paths.h"
 #include "ardour/recent_sessions.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -163,12 +161,6 @@ ARDOUR::write_recent_sessions (RecentSessions& rs)
 
        {
                stringstream recent;
-               //ofstream recent (fout);
-
-               // if (!recent) {
-               //      fclose (fout);
-               //      return -1;
-               // }
 
                for (RecentSessions::iterator i = rs.begin(); i != rs.end(); ++i) {
                        recent << (*i).first << '\n' << (*i).second << endl;