summaryrefslogtreecommitdiffstats
path: root/src/path-prefix.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-03-30 18:23:44 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-03-30 20:30:51 +0000
commit565ffa01dc2fdc8a6a259c429dc03de50ea5a20e (patch)
treed9630b66c5002f0d1636f7b1e9ae8c2d90594712 /src/path-prefix.cpp
parentAdd inscape to search path (diff)
downloadinkscape-565ffa01dc2fdc8a6a259c429dc03de50ea5a20e.tar.gz
inkscape-565ffa01dc2fdc8a6a259c429dc03de50ea5a20e.zip
Remove unused "get_datadir_path()"
This should be a function in Inkscape::IO::Resource (which it already references) if re-added.
Diffstat (limited to '')
-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)
*