From b64b57e01c31d5214a7c1ec0d2abd8fe7b28b86a Mon Sep 17 00:00:00 2001 From: waxfrenzy Date: Mon, 27 Jan 2003 22:09:09 +0000 Subject: [PATCH] Don't need path info - lrdf takes care of all this --- SpiralSound/Plugins/LADSPAPlugin/LADSPAInfo.C | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/SpiralSound/Plugins/LADSPAPlugin/LADSPAInfo.C b/SpiralSound/Plugins/LADSPAPlugin/LADSPAInfo.C index 055a891..9c72021 100644 --- a/SpiralSound/Plugins/LADSPAPlugin/LADSPAInfo.C +++ b/SpiralSound/Plugins/LADSPAPlugin/LADSPAInfo.C @@ -504,31 +504,14 @@ LADSPAInfo::ExaminePluginLibrary(const string path, } } -// Examine given RDF plugin meta-data file, adding any information found +// Examine given RDF plugin meta-data file void LADSPAInfo::ExamineRDFFile(const std::string path, const std::string basename) { -// Add path if not already added string fileuri = "file://" + path + basename; - if (!lrdf_read_file(fileuri.c_str())) { - unsigned long path_index; - vector::iterator p = find(m_RDFPaths.begin(), m_RDFPaths.end(), path); - if (p == m_RDFPaths.end()) { - path_index = m_RDFPaths.size(); - m_RDFPaths.push_back(path); - } else { - path_index = p - m_RDFPaths.begin(); - } - - // Add file info to our rdf database - RDFFileInfo ri; - ri.RDFPathIndex = path_index; - ri.Basename = basename; - m_RDFFiles.push_back(ri); - - } else { + if (lrdf_read_file(fileuri.c_str())) { cerr << "WARNING: File " << path + basename << " could not be parsed [Ignored]" << endl; } }