summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-03-16 19:33:48 +0100
committerGitHub <noreply@github.com>2017-03-16 19:33:48 +0100
commite70b3994356853883241e802f94026c6b1270d0d (patch)
tree64bcd3c37134b79db6d9de23de7f3df08ca9d173 /src
parentAPIDocs: Corrected param types in cBoundingBox (#3624) (diff)
parentRemoved unnecessary check for lower and upper folder (diff)
downloadcuberite-e70b3994356853883241e802f94026c6b1270d0d.tar
cuberite-e70b3994356853883241e802f94026c6b1270d0d.tar.gz
cuberite-e70b3994356853883241e802f94026c6b1270d0d.tar.bz2
cuberite-e70b3994356853883241e802f94026c6b1270d0d.tar.lz
cuberite-e70b3994356853883241e802f94026c6b1270d0d.tar.xz
cuberite-e70b3994356853883241e802f94026c6b1270d0d.tar.zst
cuberite-e70b3994356853883241e802f94026c6b1270d0d.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/PluginManager.cpp2
-rw-r--r--src/OSSupport/File.cpp6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index aa2b5fbfc..631f8f6bc 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -68,7 +68,7 @@ void cPluginManager::RefreshPluginList(void)
AStringVector Folders;
for (auto & item: Contents)
{
- if ((item == ".") || (item == "..") || (!cFile::IsFolder(PluginsPath + item)))
+ if (!cFile::IsFolder(PluginsPath + item))
{
// We only want folders, and don't want "." or ".."
continue;
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))