Remove unused variables

Found by cppcheck: (style) Unused variable: x
This commit is contained in:
Georg Baum 2015-10-10 21:28:28 +02:00
parent 60e594a0f7
commit d3b5260f45
10 changed files with 1 additions and 12 deletions

View File

@ -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 `"

View File

@ -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

View File

@ -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);

View File

@ -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());
}

View File

@ -40,7 +40,6 @@ InsetNewline::InsetNewline() : Inset(0)
void InsetNewlineParams::write(ostream & os) const
{
string command;
switch (kind) {
case InsetNewlineParams::NEWLINE:
os << "newline";

View File

@ -47,7 +47,6 @@ InsetNewpage::InsetNewpage(InsetNewpageParams const & params)
void InsetNewpageParams::write(ostream & os) const
{
string command;
switch (kind) {
case InsetNewpageParams::NEWPAGE:
os << "newpage";

View File

@ -45,7 +45,6 @@ InsetSeparator::InsetSeparator(InsetSeparatorParams const & params)
void InsetSeparatorParams::write(ostream & os) const
{
string command;
switch (kind) {
case InsetSeparatorParams::PLAIN:
os << "plain";

View File

@ -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{}";

View File

@ -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;

View File

@ -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;