summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-13 15:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-13 15:25:21 +0300
commit63f37017719d01f9ea72fb1f1e1722918a368755 (patch)
tree555c9d860becb70205bf2608bea2d869e2386b7e /src/resources
parent20ba8c348fe5e4d3af16fd3775e74d2200a53b98 (diff)
downloadmv-63f37017719d01f9ea72fb1f1e1722918a368755.tar.gz
mv-63f37017719d01f9ea72fb1f1e1722918a368755.tar.bz2
mv-63f37017719d01f9ea72fb1f1e1722918a368755.tar.xz
mv-63f37017719d01f9ea72fb1f1e1722918a368755.zip
Remove from resourcemanager function for add/remove archives from directory.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager/resourcemanager.cpp46
-rw-r--r--src/resources/resourcemanager/resourcemanager.h15
2 files changed, 0 insertions, 61 deletions
diff --git a/src/resources/resourcemanager/resourcemanager.cpp b/src/resources/resourcemanager/resourcemanager.cpp
index 530d45902..244f657e2 100644
--- a/src/resources/resourcemanager/resourcemanager.cpp
+++ b/src/resources/resourcemanager/resourcemanager.cpp
@@ -335,52 +335,6 @@ void ResourceManager::clearDeleted(const bool full)
}
}
-void ResourceManager::searchAndAddArchives(const std::string &restrict path,
- const std::string &restrict ext,
- const Append append) const
-{
- const char *const dirSep = dirSeparator;
- char **list = VirtFs::enumerateFiles(path.c_str());
-
- for (char **i = list; *i; i++)
- {
- const size_t len = strlen(*i);
-
- if (len > ext.length() && !ext.compare((*i) + (len - ext.length())))
- {
- const std::string file = path + (*i);
- const std::string realPath = std::string(
- VirtFs::getRealDir(file.c_str()));
- VirtFs::addZipToSearchPath(std::string(realPath).append(
- dirSep).append(file), append);
- }
- }
-
- VirtFs::freeList(list);
-}
-
-void ResourceManager::searchAndRemoveArchives(const std::string &restrict path,
- const std::string &restrict ext)
- const
-{
- const char *const dirSep = dirSeparator;
- char **list = VirtFs::enumerateFiles(path.c_str());
-
- for (char **i = list; *i; i++)
- {
- const size_t len = strlen(*i);
- if (len > ext.length() && !ext.compare((*i) + (len - ext.length())))
- {
- const std::string file = path + (*i);
- const std::string realPath = std::string(
- VirtFs::getRealDir(file.c_str()));
- VirtFs::removeZipFromSearchPath(std::string(realPath).append(
- dirSep).append(file));
- }
- }
-
- VirtFs::freeList(list);
-}
bool ResourceManager::addResource(const std::string &idPath,
Resource *const resource)
diff --git a/src/resources/resourcemanager/resourcemanager.h b/src/resources/resourcemanager/resourcemanager.h
index b9732947f..6fff83df0 100644
--- a/src/resources/resourcemanager/resourcemanager.h
+++ b/src/resources/resourcemanager/resourcemanager.h
@@ -25,8 +25,6 @@
#include "resources/memorycounter.h"
-#include "enums/simpletypes/append.h"
-
#include <map>
#include <set>
@@ -60,19 +58,6 @@ class ResourceManager final : public MemoryCounter
~ResourceManager();
/**
- * Searches for zip files and adds them to the search path.
- */
- void searchAndAddArchives(const std::string &restrict path,
- const std::string &restrict ext,
- const Append append) const;
-
- /**
- * Searches for zip files and remove them from the search path.
- */
- void searchAndRemoveArchives(const std::string &restrict path,
- const std::string &restrict ext) const;
-
- /**
* Creates a resource and adds it to the resource map.
*
* @param idPath The resource identifier path.