From 145148944f71b4ce195773bd37ae684eeee9a664 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 20 Jun 2013 00:20:12 +0100 Subject: [PATCH] Kill off platformDesktopPath entirely --- src/GUI/gui_funcs.cxx | 3 +-- src/Main/fg_init.hxx | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index 1f78d4504..2a084dad6 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -52,7 +52,6 @@ #include #include
#include
-#include
// for platformDesktopPath #include
#include #include @@ -481,7 +480,7 @@ namespace string dir = fgGetString("/sim/paths/screenshot-dir"); if (dir.empty()) - dir = platformDesktopPath().str(); + dir = SGPath::desktop().str(); _path.set(dir + '/'); if (_path.create_dir( 0755 )) { diff --git a/src/Main/fg_init.hxx b/src/Main/fg_init.hxx index 6341f4352..2d81cc82b 100644 --- a/src/Main/fg_init.hxx +++ b/src/Main/fg_init.hxx @@ -46,9 +46,6 @@ void fgOutputSettings(); // Initialize the localization SGPropertyNode *fgInitLocale(const char *language); -/// retrieve the user's desktop directory path -SGPath platformDesktopPath(); - // Init navaids and waypoints bool fgInitNav (); -- 2.39.5