]> git.lyx.org Git - features.git/blobdiff - src/mathed/array.C
remove a friend + other stuff
[features.git] / src / mathed / array.C
index 245b801a2f0f99f75a0cd678dbf3eca396aff7b4..f93104b464f7d9007a735768b023a08913b6a320 100644 (file)
@@ -120,10 +120,35 @@ void MathedArray::raw_pointer_copy(MathedInset ** p, int pos) const
 }
 
 
+#if 0
+void MathedArray::insertInset(int pos, MathedInset * p, int type)
+{
+       //bf_.insert(pos, type);
+       InsetTable tmp(pos, p);
+       insetList_.push_back(tmp);
+}
+
+
+MathedInset * MathedArray::getInset(int pos) 
+{
+       InsetList::const_iterator cit = insetList_.begin();
+       InsetList::const_iterator end = insetList_.end();
+       for (; cit != end; ++cit) {
+               if ((*cit).pos == pos)
+                       return (*cit).inset;
+       }
+       // not found
+       return 0;
+       // We would really like to throw an exception instead... (Lgb)
+       // throw inset_not_found();
+}
+
+#else
 void MathedArray::raw_pointer_insert(void * p, int pos, int len)
 {
        my_memcpy(&bf_[pos], &p, len);
 }
+#endif
 
 
 void MathedArray::strange_copy(MathedArray * dest, int dpos,