mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove unused QFSFileEngine::open() methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9a9349240a
commit
18b45cbb80
4 changed files with 1 additions and 52 deletions
|
@ -65,22 +65,6 @@ QFilePrivate::openExternalFile(int flags, int fd, QFile::FileHandleFlags handleF
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
QFilePrivate::openExternalFile(int flags, FILE *fh, QFile::FileHandleFlags handleFlags)
|
|
||||||
{
|
|
||||||
#ifdef QT_NO_FSFILEENGINE
|
|
||||||
Q_UNUSED(flags);
|
|
||||||
Q_UNUSED(fh);
|
|
||||||
return false;
|
|
||||||
#else
|
|
||||||
delete fileEngine;
|
|
||||||
fileEngine = 0;
|
|
||||||
QFSFileEngine *fe = new QFSFileEngine;
|
|
||||||
fileEngine = fe;
|
|
||||||
return fe->open(QIODevice::OpenMode(flags), fh, handleFlags);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
QFilePrivate::setError(QFile::FileError err)
|
QFilePrivate::setError(QFile::FileError err)
|
||||||
{
|
{
|
||||||
|
@ -818,7 +802,7 @@ bool QFile::open(FILE *fh, OpenMode mode, FileHandleFlags handleFlags)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Q_D(QFile);
|
Q_D(QFile);
|
||||||
if (d->openExternalFile(mode, fh, handleFlags)) {
|
if (d->openExternalFile(mode, QT_FILENO(fh), handleFlags)) {
|
||||||
QIODevice::open(mode);
|
QIODevice::open(mode);
|
||||||
if (mode & Append) {
|
if (mode & Append) {
|
||||||
seek(size());
|
seek(size());
|
||||||
|
|
|
@ -47,7 +47,6 @@ protected:
|
||||||
~QFilePrivate();
|
~QFilePrivate();
|
||||||
|
|
||||||
bool openExternalFile(int flags, int fd, QFile::FileHandleFlags handleFlags);
|
bool openExternalFile(int flags, int fd, QFile::FileHandleFlags handleFlags);
|
||||||
bool openExternalFile(int flags, FILE *fh, QFile::FileHandleFlags handleFlags);
|
|
||||||
|
|
||||||
QString fileName;
|
QString fileName;
|
||||||
mutable QAbstractFileEngine *fileEngine;
|
mutable QAbstractFileEngine *fileEngine;
|
||||||
|
|
|
@ -209,37 +209,6 @@ bool QFSFileEngine::open(QIODevice::OpenMode openMode)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
Opens the file handle \a fh in \a openMode mode. Returns true on
|
|
||||||
success; otherwise returns false.
|
|
||||||
*/
|
|
||||||
bool QFSFileEngine::open(QIODevice::OpenMode openMode, FILE *fh)
|
|
||||||
{
|
|
||||||
return QFSFileEngine::open(openMode, QT_FILENO(fh), QFile::DontCloseHandle);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
Opens the file handle \a fh in \a openMode mode. Returns true
|
|
||||||
on success; otherwise returns false.
|
|
||||||
|
|
||||||
The \a handleFlags argument specifies whether the file handle will be
|
|
||||||
closed by Qt. See the QFile::FileHandleFlags documentation for more
|
|
||||||
information.
|
|
||||||
*/
|
|
||||||
bool QFSFileEngine::open(QIODevice::OpenMode openMode, FILE *fh, QFile::FileHandleFlags handleFlags)
|
|
||||||
{
|
|
||||||
return QFSFileEngine::open(openMode, QT_FILENO(fh), handleFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
Opens the file descriptor \a fd in \a openMode mode. Returns true
|
|
||||||
on success; otherwise returns false.
|
|
||||||
*/
|
|
||||||
bool QFSFileEngine::open(QIODevice::OpenMode openMode, int fd)
|
|
||||||
{
|
|
||||||
return QFSFileEngine::open(openMode, fd, QFile::DontCloseHandle);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Opens the file descriptor \a fd in \a openMode mode. Returns true
|
Opens the file descriptor \a fd in \a openMode mode. Returns true
|
||||||
on success; otherwise returns false.
|
on success; otherwise returns false.
|
||||||
|
|
|
@ -41,7 +41,6 @@ public:
|
||||||
~QFSFileEngine();
|
~QFSFileEngine();
|
||||||
|
|
||||||
bool open(QIODevice::OpenMode openMode);
|
bool open(QIODevice::OpenMode openMode);
|
||||||
bool open(QIODevice::OpenMode flags, FILE *fh);
|
|
||||||
bool close();
|
bool close();
|
||||||
bool flush();
|
bool flush();
|
||||||
qint64 size() const;
|
qint64 size() const;
|
||||||
|
@ -77,9 +76,7 @@ public:
|
||||||
bool supportsExtension(Extension extension) const;
|
bool supportsExtension(Extension extension) const;
|
||||||
|
|
||||||
//FS only!!
|
//FS only!!
|
||||||
bool open(QIODevice::OpenMode flags, int fd);
|
|
||||||
bool open(QIODevice::OpenMode flags, int fd, QFile::FileHandleFlags handleFlags);
|
bool open(QIODevice::OpenMode flags, int fd, QFile::FileHandleFlags handleFlags);
|
||||||
bool open(QIODevice::OpenMode flags, FILE *fh, QFile::FileHandleFlags handleFlags);
|
|
||||||
static bool setCurrentPath(const QString &path);
|
static bool setCurrentPath(const QString &path);
|
||||||
static QString currentPath(const QString &path = QString());
|
static QString currentPath(const QString &path = QString());
|
||||||
static QString homePath();
|
static QString homePath();
|
||||||
|
|
Loading…
Add table
Reference in a new issue