]> git.lyx.org Git - features.git/commitdiff
remove the now unused Paragraph::translateIfPossible
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 22:14:49 +0000 (22:14 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 22:14:49 +0000 (22:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30525 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp
src/Paragraph.h

index 0726a8a5afc0e8ea9e7193b06464ddddaa5e539c..152a3bd72bb06b12014c52772dde6495c20715fb 100644 (file)
@@ -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())
index dec527cbc85590ec8963ad4d5b11057e514d81a7..2423b7492e0e1468d572b32c4e99d298d12c9fb6 100644 (file)
@@ -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;