summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-25 17:06:15 +0100
committerMattes D <github@xoft.cz>2015-01-27 14:53:34 +0100
commit1b9c0f1030ec212eb39c5291f44d99313a2b638d (patch)
tree80fdf2912fa17c882697214d96c23a53051f8721 /src/OSSupport
parentFixed enchant packet handling. (diff)
downloadcuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar.gz
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar.bz2
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar.lz
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar.xz
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.tar.zst
cuberite-1b9c0f1030ec212eb39c5291f44d99313a2b638d.zip
Diffstat (limited to 'src/OSSupport')
-rw-r--r--src/OSSupport/File.cpp23
-rw-r--r--src/OSSupport/File.h3
2 files changed, 0 insertions, 26 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp
index 1ee9feafe..8957dfaef 100644
--- a/src/OSSupport/File.cpp
+++ b/src/OSSupport/File.cpp
@@ -453,29 +453,6 @@ AString cFile::ReadWholeFile(const AString & a_FileName)
-AString cFile::ReplaceFileNameInvalidChars(const AString & a_FileName, char a_Replacement)
-{
- AString res(a_FileName);
- for (auto & ch: res)
- {
- switch (ch)
- {
- case ':':
- case '\\':
- case '/':
- {
- ch = a_Replacement;
- break;
- }
- }
- }
- return res;
-}
-
-
-
-
-
int cFile::Printf(const char * a_Fmt, ...)
{
AString buf;
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h
index b39f71e28..ac6d1ab21 100644
--- a/src/OSSupport/File.h
+++ b/src/OSSupport/File.h
@@ -127,9 +127,6 @@ public:
/** Returns the entire contents of the specified file as a string. Returns empty string on error. */
static AString ReadWholeFile(const AString & a_FileName);
- /** Replaces characters that cannot be in a file name with the specified char. */
- static AString ReplaceFileNameInvalidChars(const AString & a_FileName, char a_Replacement = '_');
-
// tolua_end
/** Returns the list of all items in the specified folder (files, folders, nix pipes, whatever's there). */