kutils: remove unused constants

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-05-19 06:20:35 +03:00
parent 3556eede0f
commit 631ae6a32a

View file

@ -742,7 +742,6 @@ bool KArchive::remove(const QStringList &paths) const
QStringList recursivepaths;
foreach (const QString &path, paths) {
if (path.endsWith(QLatin1Char('/')) || S_ISDIR(KArchive::entry(path).mode)) {
const QByteArray pathbytes = QFile::encodeName(path);
foreach (const KArchiveEntry &karchiveentry, KArchive::list(path)) {
recursivepaths.append(QFile::decodeName(karchiveentry.pathname));
}
@ -869,7 +868,6 @@ bool KArchive::extract(const QStringList &paths, const QString &destination, con
QStringList recursivepaths;
foreach (const QString &path, paths) {
if (path.endsWith(QLatin1Char('/')) || S_ISDIR(KArchive::entry(path).mode)) {
const QByteArray pathbytes = QFile::encodeName(path);
foreach (const KArchiveEntry &karchiveentry, KArchive::list(path)) {
recursivepaths.append(QFile::decodeName(karchiveentry.pathname));
}