[LyX/master] InsetIndex: remove unused code that created Coverity errors.

Thibaut Cuvelier tcuvelier at lyx.org
Sun Jan 8 20:19:33 UTC 2023


commit b42269f065f6b7705f6cc8e26dda638f07ff363a
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sun Jan 8 22:17:02 2023 +0100

    InsetIndex: remove unused code that created Coverity errors.
---
 src/insets/InsetIndex.cpp |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 32cabca..f460015 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1432,19 +1432,6 @@ public:
 			parseAsLegacy();
 	}
 
-	/// When parsing this entry, some errors may be found; they are reported as a single string.
-	// It is up to the caller to send this string to LYXERR and the output file, as needed.
-	const docstring & output_error() const
-	{
-		return output_error_;
-	}
-
-	void output_error(XMLStream xs) const
-	{
-		LYXERR0(output_error());
-		xs << XMLStream::ESCAPE_NONE << (from_utf8("<!-- Output Error: ") + output_error() + from_utf8(" -->\n"));
-	}
-
 
 private:
 	bool isModern()


More information about the lyx-cvs mailing list