]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Remove traces of Q_CYGWIN_WIN
[lyx.git] / src / LaTeXFeatures.cpp
index 4fb328b6385c02c08e67ec39880cf134a321f0eb..02c47481950d592b91066b110a84932d39d1505f 100644 (file)
@@ -431,18 +431,6 @@ bool LaTeXFeatures::hasLanguages() const
 }
 
 
-bool LaTeXFeatures::hasLanguage(string const & lang) const
-{
-       LanguageList::const_iterator cit = UsedLanguages_.begin();
-       LanguageList::const_iterator const end = UsedLanguages_.end();
-       for (; cit != end; ++cit) {
-               if ((*cit)->babel() == lang)
-                       return true;
-       }
-       return false;
-}
-
-
 string LaTeXFeatures::getLanguages() const
 {
        ostringstream languages;
@@ -588,10 +576,11 @@ string const LaTeXFeatures::getPackages() const
        //
 
        // esint is preferred for esintoramsmath
-       if ((mustProvide("amsmath") &&
-            params_.use_amsmath != BufferParams::package_off) ||
-           (mustProvide("esintoramsmath") &&
-            params_.use_esint == BufferParams::package_off)) {
+       if ((mustProvide("amsmath")
+            && params_.use_amsmath != BufferParams::package_off)
+           || (mustProvide("esintoramsmath")
+               && params_.use_esint == BufferParams::package_off
+               && params_.use_amsmath != BufferParams::package_off)) {
                packages << "\\usepackage{amsmath}\n";
        } else if (mustProvide("amsbsy")) {
                // amsbsy is already provided by amsmath