summaryrefslogtreecommitdiff
path: root/source/core/text-io.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-24 19:14:14 -0400
committerGitHub <noreply@github.com>2017-10-24 19:14:14 -0400
commit3043171dae37d18015d6cd26287d492c576f4f1a (patch)
tree1037732c1e90afd36b588851ce5755d64188bcdb /source/core/text-io.h
parentab64cf2ec05980d72cb2bad45e629d10ebbefdc1 (diff)
parent434d3428932ccaa0f6834d03c37adcab37d17a01 (diff)
Merge pull request #227 from csyonghe/master
Extending render-test to support various resource inputs
Diffstat (limited to 'source/core/text-io.h')
-rw-r--r--source/core/text-io.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/core/text-io.h b/source/core/text-io.h
index e4bdc6e2d..c914e340a 100644
--- a/source/core/text-io.h
+++ b/source/core/text-io.h
@@ -311,28 +311,6 @@ namespace Slang
stream = 0;
}
};
-
- inline List<String> Split(String text, char c)
- {
- List<String> result;
- StringBuilder sb;
- for (int i = 0; i < text.Length(); i++)
- {
- if (text[i] == c)
- {
- auto str = sb.ToString();
- if (str.Length() != 0)
- result.Add(str);
- sb.Clear();
- }
- else
- sb << text[i];
- }
- auto lastStr = sb.ToString();
- if (lastStr.Length())
- result.Add(lastStr);
- return result;
- }
}
#endif