summaryrefslogtreecommitdiffstats
path: root/src/path-prefix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-prefix.cpp')
-rw-r--r--src/path-prefix.cpp26
1 files changed, 0 insertions, 26 deletions
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)
*