From 680590dfa815cfbf3ed83354240627a5541a29ab Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 12 Jul 2009 22:14:49 +0000 Subject: [PATCH] remove the now unused Paragraph::translateIfPossible git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30525 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 13 ++----------- src/Paragraph.h | 3 --- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 0726a8a5af..152a3bd72b 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1605,22 +1605,13 @@ void Paragraph::setLabelWidthString(docstring const & s) } -docstring const Paragraph::translateIfPossible(docstring const & s, - BufferParams const & bparams) const -{ - return lyx::translateIfPossible(s, getParLanguage(bparams)->code()); -} - - docstring Paragraph::expandLabel(Layout const & layout, BufferParams const & bparams, bool process_appendix) const { DocumentClass const & tclass = bparams.documentClass(); string const & lang = getParLanguage(bparams)->code(); - docstring fmt = - lyx::translateIfPossible(layout.labelstring(process_appendix - && d->params_.appendix()), - lang); + bool const in_appendix = process_appendix && d->params_.appendix(); + docstring fmt = translateIfPossible(layout.labelstring(in_appendix), lang); if (fmt.empty() && layout.labeltype == LABEL_COUNTER && !layout.counter.empty()) diff --git a/src/Paragraph.h b/src/Paragraph.h index dec527cbc8..2423b7492e 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -250,9 +250,6 @@ public: docstring const getLabelWidthString() const; /// Set label width string. void setLabelWidthString(docstring const & s); - /// translate \p label to the paragraph language if possible. - docstring const translateIfPossible(docstring const & label, - BufferParams const & bparams) const; /// Expand the counters for the labelstring of \c layout docstring expandLabel(Layout const &, BufferParams const &, bool process_appendix = true) const; -- 2.39.5