summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport/File.cpp')
-rw-r--r--src/OSSupport/File.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp
index 062161144..166de8f46 100644
--- a/src/OSSupport/File.cpp
+++ b/src/OSSupport/File.cpp
@@ -336,12 +336,6 @@ bool cFile::DeleteFolderContents(const AString & a_FolderName)
auto Contents = cFile::GetFolderContents(a_FolderName);
for (const auto & item: Contents)
{
- // Skip "." and ".." altogether:
- if ((item == ".") || (item == ".."))
- {
- continue;
- }
-
// Remove the item:
auto WholePath = a_FolderName + GetPathSeparator() + item;
if (IsFolder(WholePath))