From 9448e89879ebe52f077fa001b4cb768e31525ba1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 4 Mar 2015 18:19:30 +0100 Subject: [PATCH] Remove unused variable BufferParams::quotes_times This was pointed out inadvertently by coverity issue 23484: the variable was not properly initialized. --- src/BufferParams.h | 2 -- src/insets/InsetQuotes.cpp | 10 ---------- src/insets/InsetQuotes.h | 2 -- 3 files changed, 14 deletions(-) diff --git a/src/BufferParams.h b/src/BufferParams.h index a3836a80c2..2ff8ece309 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -110,8 +110,6 @@ public: /// InsetQuotes::QuoteLanguage quotes_language; /// - InsetQuotes::QuoteTimes quotes_times; - /// std::string fontsize; /// Get the LayoutFile this document is using. LayoutFile const * baseClass() const; diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 1877949af7..9682d661d7 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -95,16 +95,6 @@ InsetQuotes::InsetQuotes(Buffer * buf, string const & str) : Inset(buf) parseString(str); } -InsetQuotes::InsetQuotes(Buffer * buf, char_type c) : Inset(buf) -{ - if (buf) { - language_ = buf->params().quotes_language; - times_ = buf->params().quotes_times; - } - setSide(c); -} - - InsetQuotes::InsetQuotes(Buffer * buf, char_type c, QuoteTimes t) : Inset(buf), times_(t) { diff --git a/src/insets/InsetQuotes.h b/src/insets/InsetQuotes.h index 98a0cbbcf8..0e4f46cbac 100644 --- a/src/insets/InsetQuotes.h +++ b/src/insets/InsetQuotes.h @@ -63,8 +63,6 @@ public: \end{itemize} */ explicit InsetQuotes(Buffer * buf, std::string const & str = "eld"); - /// Create the right quote inset after character c - InsetQuotes(Buffer * buffer, char_type c); /// Direct access to inner/outer quotation marks InsetQuotes(Buffer * buf, char_type c, QuoteTimes t); /// -- 2.39.5