From 3595239f08f2bc1df32ef22ed6de9bde10ca3384 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 4 Jun 2007 01:35:20 +0000 Subject: Style cleanup, minor Matrix fixes, duplication validations, Pokemod methods git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@19 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Path.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'pokemod/Path.cpp') 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; -- cgit