Remove unnecessary currentArticleOffset.

This protected member is never used.
This commit is contained in:
Matthieu Gautier 2018-03-12 17:26:05 +01:00
parent f93f50087b
commit b6ba10af2a
2 changed files with 0 additions and 8 deletions

View File

@ -56,7 +56,6 @@ class Reader
Reader(const string zimFilePath); Reader(const string zimFilePath);
~Reader(); ~Reader();
void reset();
/** /**
* Get the number of "displayable" articles in the zim file. * Get the number of "displayable" articles in the zim file.
* *
@ -421,7 +420,6 @@ class Reader
zim::File* zimFileHandler; zim::File* zimFileHandler;
zim::size_type firstArticleOffset; zim::size_type firstArticleOffset;
zim::size_type lastArticleOffset; zim::size_type lastArticleOffset;
zim::size_type currentArticleOffset;
zim::size_type nsACount; zim::size_type nsACount;
zim::size_type nsICount; zim::size_type nsICount;
std::string zimFilePath; std::string zimFilePath;

View File

@ -80,7 +80,6 @@ Reader::Reader(const string zimFilePath) : zimFileHandler(NULL)
this->firstArticleOffset this->firstArticleOffset
= this->zimFileHandler->getNamespaceBeginOffset('A'); = this->zimFileHandler->getNamespaceBeginOffset('A');
this->lastArticleOffset = this->zimFileHandler->getNamespaceEndOffset('A'); this->lastArticleOffset = this->zimFileHandler->getNamespaceEndOffset('A');
this->currentArticleOffset = this->firstArticleOffset;
this->nsACount = this->zimFileHandler->getNamespaceCount('A'); this->nsACount = this->zimFileHandler->getNamespaceCount('A');
this->nsICount = this->zimFileHandler->getNamespaceCount('I'); this->nsICount = this->zimFileHandler->getNamespaceCount('I');
this->zimFilePath = zimFilePath; this->zimFilePath = zimFilePath;
@ -102,11 +101,6 @@ zim::File* Reader::getZimFileHandler() const
{ {
return this->zimFileHandler; return this->zimFileHandler;
} }
/* Reset the cursor for GetNextArticle() */
void Reader::reset()
{
this->currentArticleOffset = this->firstArticleOffset;
}
std::map<const std::string, unsigned int> Reader::parseCounterMetadata() const std::map<const std::string, unsigned int> Reader::parseCounterMetadata() const
{ {
std::map<const std::string, unsigned int> counters; std::map<const std::string, unsigned int> counters;