diff --git a/src/ChangeLog b/src/ChangeLog index 121c6e9733..ad06f36078 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ + +2003-05-23 Alfredo Braunstein + + * texrow.[Ch] (increasePos): remove function + * exporter.C (export): removed unused var and outdated comment + 2003-05-23 Angus Leeming * latexrunparams.h: rename fragile as moving_arg. diff --git a/src/exporter.C b/src/exporter.C index 0e0cb9ede9..c84c7cd49d 100644 --- a/src/exporter.C +++ b/src/exporter.C @@ -29,11 +29,6 @@ using std::find; bool Exporter::Export(Buffer * buffer, string const & format, bool put_in_tempdir, string & result_file) { - // There are so many different places that this function can be called - // from that the removal of auto insets is best done here. This ensures - // we always have a clean buffer for inserting errors found during export. - BufferView * bv = buffer->getUser(); - string backend_format; LatexRunParams runparams; runparams.flavor = LatexRunParams::LATEX; diff --git a/src/texrow.C b/src/texrow.C index 96e3d2bd0e..b2a883aae6 100644 --- a/src/texrow.C +++ b/src/texrow.C @@ -14,7 +14,6 @@ #include using std::find_if; -using std::for_each; using std::endl; namespace { @@ -31,37 +30,6 @@ private: int row_; }; - -/// increment the pos value of the argument if the par id -/// is the same, and the pos parameter is larger -class increase_pos { -public: - increase_pos(int id, int pos) - : id_(id), pos_(pos) {} - - void operator()(TexRow::RowList::value_type & vt) const { - if (vt.id() != id_ || vt.pos() >= pos_) - return; - vt.pos(vt.pos() + 1); - - lyxerr[Debug::INFO] - << "TeXRow::increasePos: ideally this " - "should never happen..." << endl; - - // FIXME: When verified to work this clause should be deleted. - if (id_ == vt.id() && pos_ == vt.pos()) { - lyxerr[Debug::INFO] - << "TexRow::increasePos: this should happen " - "maximum one time for each run of " - "increasePos!" << endl; - } - } - -private: - int id_; - int pos_; -}; - } // namespace anon @@ -106,12 +74,6 @@ bool TexRow::getIdFromRow(int row, int & id, int & pos) const } -void TexRow::increasePos(int id, int pos) -{ - for_each(rowlist.begin(), rowlist.end(), increase_pos(id, pos)); -} - - TexRow & TexRow::operator+=(TexRow const & tr) { rowlist.insert(rowlist.end(), tr.rowlist.begin(), tr.rowlist.end()); diff --git a/src/texrow.h b/src/texrow.h index 6a8f4b0aa1..c4db08d08e 100644 --- a/src/texrow.h +++ b/src/texrow.h @@ -79,10 +79,6 @@ public: }; /// typedef std::list RowList; - /// increment position of all other RowItems - /// with same par id, to avoid placing error insets - /// at the same position - void increasePos(int id, int pos); private: /// number of lines unsigned int count;