From cafc6b7422fa7fde25b660ae912bbffe4640f3c0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 13 May 2017 23:14:21 -0500 Subject: [PATCH] Remove unnecessary ls from FileSystemTemplate --- deps/ox/src/ox/fs/filesystem.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/deps/ox/src/ox/fs/filesystem.hpp b/deps/ox/src/ox/fs/filesystem.hpp index 5ed98b0c..2576ffaf 100644 --- a/deps/ox/src/ox/fs/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem.hpp @@ -277,9 +277,6 @@ class FileSystemTemplate: public FileSystem { int stripDirectories() override; - template - int ls(const char *path, List *list); - int mkdir(const char *path) override; int read(const char *path, void *buffer, size_t buffSize) override; @@ -356,30 +353,6 @@ int FileSystemTemplate::stripDirectories() { return m_store->removeAllType(FileType::FileType_Directory); } -template -template -int FileSystemTemplate::ls(const char *path, List *list) { - int err = 0; - auto inode = findInodeOf(path); - auto dirStat = stat(inode); - auto dirBuffLen = dirStat.size; - uint8_t dirBuff[dirBuffLen]; - auto dir = (Directory*) dirBuff; - - err = read(dirStat.inode, dirBuff, dirBuffLen); - if (!err) { - dir->ls(list); - - for (auto &i : *list) { - i.stat = stat(i.stat.inode); - } - - return 0; - } else { - return 1; - } -} - template int FileSystemTemplate::mkdir(const char *path) { Directory dir;