aboutsummaryrefslogtreecommitdiff
path: root/src/FileStream.cpp
diff options
context:
space:
mode:
authorZezula Ladislav <ladislav.zezula@avast.com>2017-11-08 15:31:45 +0100
committerZezula Ladislav <ladislav.zezula@avast.com>2017-11-08 15:31:45 +0100
commitdae0b690f796bd421ab69a0219cb1b46095b9f27 (patch)
tree3bb720145fdfe104b8ddecfe1e46f3419c38e8c0 /src/FileStream.cpp
parent0ff84d5aed22bb5e3246cb0561592826afeb5f4a (diff)
+ SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"
+ Fixed some bugs
Diffstat (limited to 'src/FileStream.cpp')
-rw-r--r--src/FileStream.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index b2370ff..c73223c 100644
--- a/src/FileStream.cpp
+++ b/src/FileStream.cpp
@@ -2826,58 +2826,3 @@ void FileStream_Close(TFileStream * pStream)
STORM_FREE(pStream);
}
}
-
-//-----------------------------------------------------------------------------
-// Utility functions (ANSI)
-
-const char * GetPlainFileName(const char * szFileName)
-{
- const char * szPlainName = szFileName;
-
- while(*szFileName != 0)
- {
- if(*szFileName == '\\' || *szFileName == '/')
- szPlainName = szFileName + 1;
- szFileName++;
- }
-
- return szPlainName;
-}
-
-void CopyFileName(char * szTarget, const char * szSource, size_t cchLength)
-{
- memcpy(szTarget, szSource, cchLength);
- szTarget[cchLength] = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Utility functions (UNICODE) only exist in the ANSI version of the library
-// In ANSI builds, TCHAR = char, so we don't need these functions implemented
-
-#ifdef _UNICODE
-const TCHAR * GetPlainFileName(const TCHAR * szFileName)
-{
- const TCHAR * szPlainName = szFileName;
-
- while(*szFileName != 0)
- {
- if(*szFileName == '\\' || *szFileName == '/')
- szPlainName = szFileName + 1;
- szFileName++;
- }
-
- return szPlainName;
-}
-
-void CopyFileName(TCHAR * szTarget, const char * szSource, size_t cchLength)
-{
- mbstowcs(szTarget, szSource, cchLength);
- szTarget[cchLength] = 0;
-}
-
-void CopyFileName(char * szTarget, const TCHAR * szSource, size_t cchLength)
-{
- wcstombs(szTarget, szSource, cchLength);
- szTarget[cchLength] = 0;
-}
-#endif