Commit 8d77de44 authored by Michael Reeves's avatar Michael Reeves

Drop unneeded static functions in FileAccess

parent 1c4b82d7
......@@ -63,7 +63,7 @@ void SourceData::reset()
m_lmppData.reset();
if(!m_tempInputFileName.isEmpty())
{
FileAccess::removeFile(m_tempInputFileName);
m_tempFile.remove();
m_tempInputFileName = "";
}
}
......@@ -122,7 +122,7 @@ void SourceData::setFileAccess(const FileAccess& fileAccess)
m_aliasName = QString();
if(!m_tempInputFileName.isEmpty())
{
FileAccess::removeFile(m_tempInputFileName);
m_tempFile.remove();
m_tempInputFileName = "";
}
}
......
......@@ -2838,7 +2838,7 @@ bool DirectoryMergeWindow::DirectoryMergeWindowPrivate::deleteFLD(const QString&
}
else
{
bool bSuccess = FileAccess::removeFile(name);
bool bSuccess = fi.removeFile();
if(!bSuccess)
{
m_pStatusInfo->addText(i18n("Error: delete operation failed."));
......
......@@ -561,11 +561,6 @@ bool FileAccess::removeFile()
}
}
bool FileAccess::removeFile(const QString& name) // static
{
return FileAccess(name).removeFile();
}
bool FileAccess::listDir(t_DirectoryList* pDirList, bool bRecursive, bool bFindHidden,
const QString& filePattern, const QString& fileAntiPattern, const QString& dirAntiPattern,
bool bFollowDirLinks, bool bUseCvsIgnore)
......@@ -664,12 +659,6 @@ void FileAccess::createTempFile(QTemporaryFile& tmpFile)
tmpFile.close();
}
bool FileAccess::removeTempFile(const QString& name) // static
{
return FileAccess(name).removeFile();
}
bool FileAccess::makeDir(const QString& dirName)
{
FileAccessJobHandler fh(nullptr);
......
......@@ -78,9 +78,7 @@ public:
QString getTempName() const;
bool createLocalCopy();
static void createTempFile(QTemporaryFile& );
static bool removeTempFile( const QString& );
bool removeFile();
static bool removeFile( const QString& );
static bool makeDir( const QString& );
static bool removeDir( const QString& );
static bool exists( const QString& );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment