Mercurial > hg > svcore
diff rdf/PluginRDFDescription.cpp @ 471:0dc158c1a6c9
* tidy up uses of CachedFile
author | Chris Cannam |
---|---|
date | Tue, 28 Oct 2008 11:38:43 +0000 |
parents | 70b333085952 |
children | 3ffce691c9bf |
line wrap: on
line diff
--- a/rdf/PluginRDFDescription.cpp Tue Oct 28 11:37:33 2008 +0000 +++ b/rdf/PluginRDFDescription.cpp Tue Oct 28 11:38:43 2008 +0000 @@ -30,7 +30,6 @@ using std::endl; PluginRDFDescription::PluginRDFDescription(QString pluginId) : -//!!! m_source(0), m_pluginId(pluginId), m_haveDescription(false) { @@ -51,7 +50,6 @@ PluginRDFDescription::~PluginRDFDescription() { -//!!! delete m_source; } bool @@ -167,25 +165,12 @@ if (FileSource::isRemote(url) && FileSource::canHandleScheme(url)) { - //!!! persistent with expiry - CachedFile cf(url); if (!cf.isOK()) { return false; } local = QUrl::fromLocalFile(cf.getLocalFilename()).toString(); -/*!!! - m_source = new FileSource(url, 0, FileSource::PersistentCache); - - if (!m_source->isAvailable()) { - delete m_source; - m_source = 0; - return false; - } - m_source->waitForData(); - local = QUrl::fromLocalFile(m_source->getLocalFilename()).toString(); -*/ } if (!indexMetadata(local, label)) success = false;