diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
commit | bf75a2b6b184a3504cdee4b88a6db4a82c6da150 (patch) | |
tree | 841434e105e89e6a5ef1b6bbe3c1b43a5dd2e499 /common/definitions.cpp | |
parent | c3040251dd4d9e8d00cbccdeb693b11a72077c73 (diff) | |
download | sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.tar.gz sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.zip |
Don't encode the resource type into the identifier
Diffstat (limited to 'common/definitions.cpp')
-rw-r--r-- | common/definitions.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/definitions.cpp b/common/definitions.cpp index 101279e..26e23ed 100644 --- a/common/definitions.cpp +++ b/common/definitions.cpp | |||
@@ -36,13 +36,3 @@ QString Sink::temporaryFileLocation() | |||
36 | dir.mkpath(path); | 36 | dir.mkpath(path); |
37 | return path; | 37 | return path; |
38 | } | 38 | } |
39 | |||
40 | QByteArray Sink::resourceName(const QByteArray &instanceIdentifier) | ||
41 | { | ||
42 | auto split = instanceIdentifier.split('.'); | ||
43 | if (split.size() <= 1) { | ||
44 | return instanceIdentifier; | ||
45 | } | ||
46 | split.removeLast(); | ||
47 | return split.join('.'); | ||
48 | } | ||