From 62a386d3fc2bf46b14d6d412642638b4d7be8583 Mon Sep 17 00:00:00 2001 From: Alexander Irion Date: Tue, 11 Aug 2020 12:36:00 +0200 Subject: Remove unused function importSceneFromTXTHelper --- .../LayerManagerControl/src/sceneio.cpp | 48 ---------------------- 1 file changed, 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 code; -- cgit v1.2.1