src: removed unused / unnecessary methods from FileSystem

This commit is contained in:
mlangkabel
2018-02-09 17:41:56 +01:00
parent e31624a4b7
commit 72c2596251
3 changed files with 0 additions and 50 deletions
-18
View File
@@ -101,24 +101,6 @@ public:
#endif
}
void test_filesystem_extracts_filename()
{
TS_ASSERT_EQUALS(FileSystem::fileName("data/FileSystemTestSuite/tictactoe.h"), "tictactoe.h");
TS_ASSERT_EQUALS(FileSystem::fileName("data/FileSystemTestSuite/Settings/player.h"), "player.h");
}
void test_filesystem_extracts_extension()
{
TS_ASSERT_EQUALS(FileSystem::extension("data/FileSystemTestSuite/tictactoe.h"), ".h");
TS_ASSERT_EQUALS(FileSystem::extension("data/FileSystemTestSuite/tictactoe.cpp"), ".cpp");
}
void test_filesystem_extract_filepath_without_extension()
{
TS_ASSERT_EQUALS(FileSystem::filePathWithoutExtension("data/FileSystemTestSuite/tictactoe.h"), "data/FileSystemTestSuite/tictactoe");
TS_ASSERT_EQUALS(FileSystem::filePathWithoutExtension("data/FileSystemTestSuite/tictactoe.cpp"), "data/FileSystemTestSuite/tictactoe");
}
private:
bool isInFiles(const std::set<FilePath>& files, const FilePath& filename)
{