diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-30 19:30:31 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-30 20:30:51 +0000 |
| commit | 41cf31f7a546798bee1cd554ae5c61b28dbfbf49 (patch) | |
| tree | cb11282ec9886af78ecaf69f37386fe88b58a429 | |
| parent | Remove "get_extensions_path()" (diff) | |
| download | inkscape-41cf31f7a546798bee1cd554ae5c61b28dbfbf49.tar.gz inkscape-41cf31f7a546798bee1cd554ae5c61b28dbfbf49.zip | |
Inkscape::IO::Resource: Drop "DATA_DIR" from Type enum
It seems unlikely we ever want to load "arbitrary" data from share/,
usually there will be a more suitable "Type" to look for.
Also it avoids ambiguity, as there is no user-specific "DATA_DIR"
| -rw-r--r-- | src/io/resource.cpp | 4 | ||||
| -rw-r--r-- | src/io/resource.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp index edabf72dd..9e31a5e5c 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -62,9 +62,6 @@ gchar *_get_path(Domain domain, Type type, char const *filename) case TUTORIALS: temp = INKSCAPE_TUTORIALSDIR; break; case UIS: temp = INKSCAPE_UIDIR; break; case PIXMAPS: temp = INKSCAPE_PIXMAPSDIR; break; -#ifdef INKSCAPE_DATADIR - case DATA_DIR: temp = INKSCAPE_DATADIR; break; -#endif default: temp = ""; } path = g_strdup(temp); @@ -100,7 +97,6 @@ gchar *_get_path(Domain domain, Type type, char const *filename) case THEMES: name = "themes"; break; case UIS: name = "ui"; break; case PIXMAPS: name = "pixmaps"; break; - case DATA_DIR: name = ""; break; default: return _get_path(SYSTEM, type, filename); } path = profile_path(name); diff --git a/src/io/resource.h b/src/io/resource.h index fb814b946..8316b8a0b 100644 --- a/src/io/resource.h +++ b/src/io/resource.h @@ -45,7 +45,6 @@ enum Type { THEMES, UIS, PIXMAPS, - DATA_DIR }; enum Domain { |
