remove unneeded TocModel::clear() method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25236 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-12 15:34:12 +00:00
parent 6876ffa65b
commit edd117f27a
2 changed files with 0 additions and 10 deletions

View File

@ -52,14 +52,6 @@ QModelIndex TocModel::modelIndex(DocIterator const & dit) const
}
void TocModel::clear()
{
QStandardItemModel::clear();
removeRows(0, rowCount());
removeColumns(0, columnCount());
}
TocModel::TocModel(Toc const & toc): toc_(toc)
{
if (toc_.empty())

View File

@ -34,8 +34,6 @@ public:
///
TocModel(Toc const & toc);
///
void clear();
///
TocItem const & tocItem(QModelIndex const & index) const;
///
QModelIndex modelIndex(DocIterator const & dit) const;