summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/App.cpp4
-rw-r--r--src/gui/ConnectWindow.cpp3
-rw-r--r--src/gui/LoadPatchWindow.cpp6
3 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 4ee1fe74..448f3903 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -16,10 +16,8 @@
*/
#include <cassert>
-#include <string>
#include <fstream>
-#include <time.h>
-#include <sys/time.h>
+#include <string>
#include <gtk/gtkwindow.h>
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index 0b1aa47d..6c5402f5 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -17,9 +17,6 @@
#include <stdlib.h>
#include <string>
-#include <sys/resource.h>
-#include <sys/time.h>
-#include <time.h>
#include "raul/Process.hpp"
#include "raul/log.hpp"
diff --git a/src/gui/LoadPatchWindow.cpp b/src/gui/LoadPatchWindow.cpp
index 33094bbd..64e6aa4e 100644
--- a/src/gui/LoadPatchWindow.cpp
+++ b/src/gui/LoadPatchWindow.cpp
@@ -15,8 +15,6 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <sys/types.h>
-#include <dirent.h>
#include <cassert>
#include <boost/optional.hpp>
#include <glibmm/miscutils.h>
@@ -86,10 +84,8 @@ LoadPatchWindow::LoadPatchWindow(BaseObjectType* cobject,
// Add global examples directory to "shortcut folders" (bookmarks)
const string examples_dir = Shared::data_file_path("patches");
- DIR* d = opendir(examples_dir.c_str());
- if (d != NULL) {
+ if (Glib::file_test(examples_dir, Glib::FILE_TEST_IS_DIR)) {
add_shortcut_folder(examples_dir);
- closedir(d);
}
}