From 565ffa01dc2fdc8a6a259c429dc03de50ea5a20e Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 30 Mar 2019 19:23:44 +0100 Subject: Remove unused "get_datadir_path()" This should be a function in Inkscape::IO::Resource (which it already references) if re-added. --- src/path-prefix.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/path-prefix.cpp') diff --git a/src/path-prefix.cpp b/src/path-prefix.cpp index a2b7c9fbc..92efcb895 100644 --- a/src/path-prefix.cpp +++ b/src/path-prefix.cpp @@ -98,32 +98,6 @@ gchar *get_extensions_path() return new_pythonpath; } -gchar *get_datadir_path() -{ - using namespace Inkscape::IO::Resource; - gchar *datadir; - -#ifdef _WIN32 - datadir = g_win32_locale_filename_from_utf8(profile_path("")); -#else - datadir = profile_path(""); -#endif - - // On some platforms, INKSCAPE_EXTENSIONDIR is not absolute, - // but relative to the directory that contains the Inkscape executable. - // Since we spawn Python chdir'ed into the script's directory, - // we need to obtain the absolute path here. - if (!g_path_is_absolute(datadir)) { - gchar *curdir = g_get_current_dir(); - gchar *datadir_new = g_build_filename(curdir, datadir, NULL); - g_free(datadir); - g_free(curdir); - datadir = datadir_new; - } - - return datadir; -} - /** * Gets the the currently running program's executable name (including full path) * -- cgit v1.2.3