X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fpacksource.cpp;fp=source%2Fpacksource.cpp;h=1accdb0fc3a384c456f4535db23e164a89efb5b7;hp=fe9e67db6eabae37ae1b38278d68104b305f2739;hb=b39ce68f12c30eedb272b65fe78baec5864d89ca;hpb=5adc143801103f6a914f3738a0f3986d4bff5630 diff --git a/source/packsource.cpp b/source/packsource.cpp index fe9e67d..1accdb0 100644 --- a/source/packsource.cpp +++ b/source/packsource.cpp @@ -112,9 +112,6 @@ void PackSource::load(Collection &coll, const CollectionItemTypeBase &type, cons return; File &file = i->second->get_file(); - if(file.is_loaded()) - return; - file.set_loaded(); RefPtr in = file.open(); Parser parser(*in, file.get_full_name()); @@ -165,8 +162,7 @@ PackSource::File::File(const Pack &p, const string &fn): filename(fn), offset(0), length(0), - collection(false), - loaded(false) + collection(false) { } RefPtr PackSource::File::open() const @@ -196,11 +192,6 @@ string PackSource::File::get_full_name() const return format("%s/%s", pack.get_filename(), filename); } -void PackSource::File::set_loaded() -{ - loaded = true; -} - void PackSource::File::collect_objects(ObjectMap &objs) const { for(list::const_iterator i=objects.begin(); i!=objects.end(); ++i)