summaryrefslogtreecommitdiffstats
path: root/pokemod/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Path.cpp')
-rw-r--r--pokemod/Path.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/pokemod/Path.cpp b/pokemod/Path.cpp
index c8945e28..a8fa5ebb 100644
--- a/pokemod/Path.cpp
+++ b/pokemod/Path.cpp
@@ -50,7 +50,6 @@ bool PokeGen::PokeMod::Path::DoesExist()
{
if (*this == "")
return false;
- // Try to open the file
std::ifstream test(c_str(), std::ios::in);
test.close();
if (test.fail())
@@ -65,7 +64,6 @@ bool PokeGen::PokeMod::Path::HasExtension(const String &ext)
String fileExt(substr(pos + 1));
if ((pos == npos) || (pos + 1 == length()) || (fileExt.length() != ext.length()))
return false;
- // Loop while the two are equal
for (unsigned i = 0; ret && (i < ext.length()); ++i)
ret = (tolower(ext[i]) == tolower(fileExt[i]));
return ret;