[LyX/master] remove unused param
Juergen Spitzmueller
spitz at lyx.org
Mon Aug 12 11:28:36 UTC 2024
commit 99fcf9df0ec7bca2fba8dbc804bbab3f17e60065
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Mon Aug 12 13:15:02 2024 +0200
remove unused param
---
src/insets/InsetCommandParams.cpp | 20 +-------------------
src/insets/InsetCommandParams.h | 1 -
2 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp
index 5b39bc0e41..a0d02e2245 100644
--- a/src/insets/InsetCommandParams.cpp
+++ b/src/insets/InsetCommandParams.cpp
@@ -440,8 +440,7 @@ docstring InsetCommandParams::prepareCommand(OutputParams const & runparams,
result = command;
ltrimmed = true;
}
- if (handling & ParamInfo::HANDLING_LATEXIFY
- || handling & ParamInfo::HANDLING_INDEX_ESCAPE)
+ if (handling & ParamInfo::HANDLING_LATEXIFY)
if ((*this)["literal"] == "true")
handling = ParamInfo::HANDLING_NONE;
@@ -540,23 +539,6 @@ docstring InsetCommandParams::prepareCommand(OutputParams const & runparams,
uncodable));
}
}
- // INDEX_ESCAPE is independent of the others
- if (handling & ParamInfo::HANDLING_INDEX_ESCAPE) {
- // Now escape special commands
- static docstring const quote = from_ascii("\"");
- int const nchars_escape = 4;
- static char_type const chars_escape[nchars_escape] = { '"', '@', '|', '!' };
-
- if (!result.empty()) {
- // The characters in chars_name[] need to be changed to a command when
- // they are LaTeXified.
- for (int k = 0; k < nchars_escape; k++)
- for (size_t i = 0, pos;
- (pos = result.find(chars_escape[k], i)) != string::npos;
- i = pos + 2)
- result.replace(pos, 1, quote + chars_escape[k]);
- }
- }
return ltrimmed ? ltrim(result) : result;
}
diff --git a/src/insets/InsetCommandParams.h b/src/insets/InsetCommandParams.h
index a7cdd841b6..5f463454c0 100644
--- a/src/insets/InsetCommandParams.h
+++ b/src/insets/InsetCommandParams.h
@@ -46,7 +46,6 @@ public:
HANDLING_ESCAPE = 2, /// escape special characters
HANDLING_LATEXIFY = 4, /// transform special characters to LaTeX macros
HANDLING_LTRIM = 8, /// trim blanks on the left
- HANDLING_INDEX_ESCAPE = 16, /// escape makeindex special chars
};
///
class ParamData {
More information about the lyx-cvs
mailing list