commit 11ceee4e6ad48dcc242e5d32f0856640eea3a788
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Mon Sep 21 13:43:31 2026 +0200
Remove useless Pariterator::pit()
Spotted by cppcheck.
---
src/ParIterator.cpp | 6 ------
src/ParIterator.h | 5 -----
2 files changed, 11 deletions(-)
diff --git a/src/ParIterator.cpp b/src/ParIterator.cpp
index 10de5f312d..bc474df16b 100644
--- a/src/ParIterator.cpp
+++ b/src/ParIterator.cpp
@@ -73,12 +73,6 @@ Paragraph & ParIterator::operator*() const
}
-pit_type ParIterator::pit() const
-{
- return DocIterator::pit();
-}
-
-
Paragraph * ParIterator::operator->() const
{
return &text()->getPar(pit());
diff --git a/src/ParIterator.h b/src/ParIterator.h
index acdc35f36d..0e1d93004e 100644
--- a/src/ParIterator.h
+++ b/src/ParIterator.h
@@ -45,11 +45,6 @@ public:
Paragraph * operator->() const;
/// This gives us the top-most parent paragraph
pit_type outerPar() const;
- ///
- pit_type pit() const;
- ///
- /// return the paragraph this cursor is in
- pit_type & pit() { return DocIterator::pit(); }
ParagraphList & plist() const;
};
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs