mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
6876ffa65b
commit
edd117f27a
@ -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())
|
||||
|
@ -34,8 +34,6 @@ public:
|
||||
///
|
||||
TocModel(Toc const & toc);
|
||||
///
|
||||
void clear();
|
||||
///
|
||||
TocItem const & tocItem(QModelIndex const & index) const;
|
||||
///
|
||||
QModelIndex modelIndex(DocIterator const & dit) const;
|
||||
|
Loading…
Reference in New Issue
Block a user