Commit a2498b83 authored by Halla Rempt's avatar Halla Rempt
Browse files

Remove code commented out since before 2002

That was commit

 171ae2626d53ca04e59e8159b51b6b6ecb00553e

where the commented out returns were originally added, commented
out.
parent 3a9e86c9
......@@ -219,13 +219,11 @@ bool KoStore::open(const QString & _name)
if (d->isOpen) {
kWarning(30002) << "Store is already opened, missing close";
//return KIO::ERR_INTERNAL;
return false;
}
if (d->fileName.length() > 512) {
kError(30002) << "KoStore: Filename " << d->fileName << " is too long" << endl;
//return KIO::ERR_MALFORMED_URL;
return false;
}
......@@ -233,7 +231,6 @@ bool KoStore::open(const QString & _name)
kDebug(30002) << "opening for writing" << d->fileName;
if (d->filesList.contains(d->fileName)) {
kWarning(30002) << "KoStore: Duplicate filename" << d->fileName;
//return KIO::ERR_FILE_ALREADY_EXIST;
return false;
}
......@@ -247,7 +244,6 @@ bool KoStore::open(const QString & _name)
if (!openRead(d->fileName))
return false;
} else
//return KIO::ERR_UNSUPPORTED_ACTION;
return false;
d->isOpen = true;
......@@ -267,7 +263,6 @@ bool KoStore::close()
if (!d->isOpen) {
kWarning(30002) << "You must open before closing";
//return KIO::ERR_INTERNAL;
return false;
}
......
......@@ -149,13 +149,10 @@ bool KoTarStore::openRead(const QString& name)
Q_D(KoStore);
const KArchiveEntry * entry = m_pTar->directory()->entry(name);
if (entry == 0) {
//kWarning(30002) << "Unknown filename " << name;
//return KIO::ERR_DOES_NOT_EXIST;
return false;
}
if (entry->isDirectory()) {
kWarning(30002) << name << " is a directory !";
//return KIO::ERR_IS_DIRECTORY;
return false;
}
KArchiveFile * f = (KArchiveFile *) entry;
......
......@@ -152,13 +152,10 @@ bool KoZipStore::openRead(const QString& name)
Q_D(KoStore);
const KArchiveEntry * entry = m_pZip->directory()->entry(name);
if (entry == 0) {
//kWarning(30002) << "Unknown filename " << name;
//return KIO::ERR_DOES_NOT_EXIST;
return false;
}
if (entry->isDirectory()) {
kWarning(30002) << name << " is a directory !";
//return KIO::ERR_IS_DIRECTORY;
return false;
}
// Must cast to KZipFileEntry, not only KArchiveFile, because device() isn't virtual!
......
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