mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Remove unused variables
Found by cppcheck: (style) Unused variable: x
This commit is contained in:
parent
60e594a0f7
commit
d3b5260f45
@ -525,8 +525,6 @@ docstring Counters::flattenLabelString(docstring const & counter,
|
||||
string const & lang,
|
||||
vector<docstring> & callers) const
|
||||
{
|
||||
docstring label;
|
||||
|
||||
if (find(callers.begin(), callers.end(), counter) != callers.end()) {
|
||||
// recursion detected
|
||||
lyxerr << "Warning: Recursion in label for counter `"
|
||||
|
@ -2193,7 +2193,6 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
|
||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||
break;
|
||||
} case LYX_ALIGN_RIGHT: {
|
||||
string output;
|
||||
if (owner_->getParLanguage(bparams)->babel() != "hebrew")
|
||||
corrected_env(os, begin_tag, "flushright", code, lastpar, column);
|
||||
else
|
||||
|
@ -654,7 +654,6 @@ void GuiGraphics::applyView()
|
||||
// the bb section
|
||||
igp.bbox = graphics::BoundingBox();
|
||||
if (bbChanged) {
|
||||
string bb;
|
||||
string lbXs = widgetToDoubleStr(lbX);
|
||||
string lbYs = widgetToDoubleStr(lbY);
|
||||
string rtXs = widgetToDoubleStr(rtX);
|
||||
|
@ -466,7 +466,6 @@ Filter::Filter(docstring const & description, string const & globs)
|
||||
string const expanded_globs = convert_brace_glob(globs);
|
||||
|
||||
// Split into individual globs.
|
||||
vector<string> matches;
|
||||
Tokenizer const tokens(expanded_globs, separator);
|
||||
globs_ = vector<string>(tokens.begin(), tokens.end());
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ InsetNewline::InsetNewline() : Inset(0)
|
||||
|
||||
void InsetNewlineParams::write(ostream & os) const
|
||||
{
|
||||
string command;
|
||||
switch (kind) {
|
||||
case InsetNewlineParams::NEWLINE:
|
||||
os << "newline";
|
||||
|
@ -47,7 +47,6 @@ InsetNewpage::InsetNewpage(InsetNewpageParams const & params)
|
||||
|
||||
void InsetNewpageParams::write(ostream & os) const
|
||||
{
|
||||
string command;
|
||||
switch (kind) {
|
||||
case InsetNewpageParams::NEWPAGE:
|
||||
os << "newpage";
|
||||
|
@ -45,7 +45,6 @@ InsetSeparator::InsetSeparator(InsetSeparatorParams const & params)
|
||||
|
||||
void InsetSeparatorParams::write(ostream & os) const
|
||||
{
|
||||
string command;
|
||||
switch (kind) {
|
||||
case InsetSeparatorParams::PLAIN:
|
||||
os << "plain";
|
||||
|
@ -387,7 +387,6 @@ void InsetSpace::draw(PainterInfo & pi, int x, int y) const
|
||||
|
||||
void InsetSpaceParams::write(ostream & os) const
|
||||
{
|
||||
string command;
|
||||
switch (kind) {
|
||||
case InsetSpaceParams::NORMAL:
|
||||
os << "\\space{}";
|
||||
|
@ -1008,7 +1008,6 @@ docstring stringifyFromCursor(DocIterator const & cur, int len)
|
||||
pos_type end = ( len == -1 || cur.pos() + len > int(par.size()) ) ?
|
||||
int(par.size()) : cur.pos() + len;
|
||||
OutputParams runparams(&cur.buffer()->params().encoding());
|
||||
odocstringstream os;
|
||||
runparams.nice = true;
|
||||
runparams.flavor = OutputParams::LATEX;
|
||||
runparams.linelen = 100000; //lyxrc.plaintext_linelen;
|
||||
|
@ -136,7 +136,6 @@ ParagraphList::const_iterator makeEnvironment(
|
||||
|
||||
Layout const & defaultstyle = buf.params().documentClass().defaultLayout();
|
||||
Layout const & bstyle = par->layout();
|
||||
string item_tag;
|
||||
|
||||
// Opening outter tag
|
||||
sgml::openTag(buf, os, runparams, *pbegin);
|
||||
@ -238,7 +237,7 @@ ParagraphList::const_iterator makeEnvironment(
|
||||
if (bstyle.latextype == LATEX_ENVIRONMENT && bstyle.pass_thru)
|
||||
os << "]]>";
|
||||
|
||||
// Closing outter tag
|
||||
// Closing outer tag
|
||||
sgml::closeTag(os, *pbegin);
|
||||
|
||||
return pend;
|
||||
|
Loading…
Reference in New Issue
Block a user