summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-23 21:02:52 -0500
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-23 21:02:52 -0500
commit5d67b8dd212c235a452468dff5271880fb2d4ac3 (patch)
treeaa16829e8918bcc270ecbcfe87ef0dedb08392d4 /src/downloadmanager.cpp
parentefdff42d5f6cdf5044e741ad7aa00bf73991c422 (diff)
Remove extraneous function
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index 6894b401..3f9a2a88 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1327,21 +1327,6 @@ QString DownloadManager::getFileName(int index) const
return m_ActiveDownloads.at(index)->m_FileName;
}
-int DownloadManager::getDownloadIndex(QString filename) const
-{
- auto file = std::find_if(m_ActiveDownloads.begin(), m_ActiveDownloads.end(),
- [=](DownloadManager::DownloadInfo* const val) {
- if (val->m_FileName == filename)
- return true;
- return false;
- });
- if (file != m_ActiveDownloads.end()) {
- int fileIndex = m_ActiveDownloads.indexOf(*file);
- return fileIndex;
- }
- return -1;
-}
-
QDateTime DownloadManager::getFileTime(int index) const
{
if ((index < 0) || (index >= m_ActiveDownloads.size())) {