]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
John's Layout Tabular UI improvements and Martins fixes to clearing the
[lyx.git] / src / paragraph.C
index 3b7fa3bf3382d83fe1248bdfdb210174f1a63e28..f3d909649e8f03c35b834bf8cb517e8d661d5545 100644 (file)
@@ -1191,22 +1191,6 @@ Paragraph const * Paragraph::outerHook() const
        return depthHook(depth_type(getDepth() - 1));
 }
 
-int Paragraph::autoDeleteInsets()
-{
-       int count = 0;
-       InsetList::size_type index = 0;
-       while (index < insetlist.size()) {
-               if (insetlist[index].inset && insetlist[index].inset->autoDelete()) {
-                       erase(insetlist[index].pos); 
-                       // erase() calls to insetlist.erase(&insetlist[index])
-                       // so index shouldn't be increased.
-                       ++count;
-               } else
-                       ++index;
-       }
-       return count;
-}
-
 
 Paragraph::inset_iterator
 Paragraph::InsetIterator(pos_type pos)