]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_iter.C
mathed41.diff
[features.git] / src / mathed / math_iter.C
index 39e32ea0e72e856d02b4a64e4ae9679142d4e4be..23c6b81e0a22e26bcb0c675e6222e6530314f31f 100644 (file)
@@ -325,7 +325,7 @@ void MathedIter::insertInset(MathedInset * p, int type)
        split(shift);
 
        (*array)[pos] = type;
-       array->raw_pointer_insert(p, pos + 1, sizeof(p));
+       array->raw_pointer_insert(p, pos + 1);
        pos += SizeInset;
        (*array)[pos - 1] = type;
        (*array)[array->last()] = '\0';
@@ -376,27 +376,6 @@ bool MathedIter::Delete()
                return false;
 }
 
-
-void MathedIter::Clear()
-{
-       if (!array) {
-               lyxerr << "Math error: Attempting to clean a void array." << endl;
-               return;
-       }
-
-       Reset();
-       while (OK()) {
-               if (IsInset()) {
-                       MathedInset * inset = GetInset();
-                       if (inset->GetType()!= LM_OT_MACRO_ARG)
-                       delete inset;
-                       Delete();
-               } else
-                       Next();
-       }
-}
-
-
 // Check consistency of tabs and crs
 void MathedIter::checkTabs()
 {