* src/TextClass.cpp:

- remove superfluous condition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22429 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-01-08 09:14:44 +00:00
parent 2c0eaab164
commit 926e115e6a

View File

@ -35,7 +35,6 @@
#include <sstream> #include <sstream>
using namespace std; using namespace std;
using namespace lyx::support; using namespace lyx::support;
@ -398,10 +397,6 @@ bool TextClass::read(FileName const & filename, ReadType rt)
lexrc.eatLine(); lexrc.eatLine();
string const packages = lexrc.getString(); string const packages = lexrc.getString();
vector<string> req = getVectorFromString(packages); vector<string> req = getVectorFromString(packages);
if (requires_.empty()) {
requires_ = req;
break;
}
for (vector<string>::const_iterator it = req.begin(); for (vector<string>::const_iterator it = req.begin();
it != req.end(); ++it) { it != req.end(); ++it) {
if (find(requires_.begin(), requires_.end(), *it) == requires_.end()) if (find(requires_.begin(), requires_.end(), *it) == requires_.end())