summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Irion <alexander_irion@mentor.com>2020-08-11 12:36:00 +0200
committerTran Ba Khang(MS/EMC31-XC) <Khang.TranBa@vn.bosch.com>2023-01-13 10:32:46 +0700
commit62a386d3fc2bf46b14d6d412642638b4d7be8583 (patch)
tree95a10fa51143c8c00f9584ddb71c40d5d11b6cef
parent9fce7e7eaa11123c81ffecde874a113b13ab7315 (diff)
downloadwayland-ivi-extension-62a386d3fc2bf46b14d6d412642638b4d7be8583.tar.gz
Remove unused function importSceneFromTXTHelper
-rw-r--r--ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
index 6b11c3d..83fb1f5 100644
--- a/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
+++ b/ivi-layermanagement-examples/LayerManagerControl/src/sceneio.cpp
@@ -188,54 +188,6 @@ string decodeEscapesequences(string s)
return replaceAll(s, code);
}
-void importSceneFromTXTHelper(istream& stream, StringMapTree* node)
-{
- string in;
- //Type
- getline(stream, in);
- int typeSize = in.find(":") - in.find_first_not_of('\t');
- int typeStart = in.find_first_not_of('\t');
- node->mNodeLabel = in.substr(typeStart, typeSize);
- while (true)
- {
- long streamPosition = stream.tellg();
- getline(stream, in);
- in = rtrim(in);
-
- //end of object
- if (in.substr(0, 1) == "}")
- return;
-
- //start of object property
- if (in.substr(0, 1) == "[")
- {
- int startIndex = in.find('[') + 1;
- int endIndex = in.find(":");
- string propertyName = in.substr(startIndex, endIndex - startIndex);
- propertyName = decodeEscapesequences(propertyName);
-
- startIndex = endIndex + 1;
- endIndex = in.find("]");
- string propertyType = in.substr(startIndex, endIndex - startIndex);
- propertyType = decodeEscapesequences(propertyType);
-
- startIndex = in.find('[', endIndex) + 1;
- endIndex = in.find_last_of(']');
- string propertyValue = in.substr(startIndex, endIndex - startIndex);
- propertyValue = decodeEscapesequences(propertyValue);
-
- node->mNodeValues[propertyName] = make_pair(propertyType, propertyValue);
- }
- else
- {
- stream.seekg(streamPosition);
- StringMapTree* child = new StringMapTree;
- node->mChildren.push_back(child);
- importSceneFromTXTHelper(stream, child);
- }
- }
-}
-
string makeValidXMLCharacters(string s)
{
map<string, string> code;