summaryrefslogtreecommitdiffstats
path: root/lingucomponent
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 14:22:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-17 11:59:28 +0200
commitb275246c30ce3796cd22f72cd82c58b5cf4c86f0 (patch)
tree45888716a37d4294697fa958be709e3af845c29d /lingucomponent
parentDon't ever attempt to initialise a std::locale with a UTF-8 locale on Windows (diff)
downloadcore-b275246c30ce3796cd22f72cd82c58b5cf4c86f0.tar.gz
core-b275246c30ce3796cd22f72cd82c58b5cf4c86f0.zip
loplugin:unusedfields in formula..registry
Change-Id: I031654d8bb4f1788d364ef4f8d3bf7a05fadb148 Reviewed-on: https://gerrit.libreoffice.org/54454 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/languageguessing/guess.cxx6
-rw-r--r--lingucomponent/source/languageguessing/guess.hxx1
2 files changed, 0 insertions, 7 deletions
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx
index cd6b0427f717..7c578672d19e 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.cxx
@@ -47,7 +47,6 @@ inline bool isSeparator(const char c){
Guess::Guess()
: language_str(DEFAULT_LANGUAGE)
, country_str(DEFAULT_COUNTRY)
- , encoding_str(DEFAULT_ENCODING)
{
}
@@ -59,7 +58,6 @@ Guess::Guess()
Guess::Guess(const char * guess_str)
: language_str(DEFAULT_LANGUAGE)
, country_str(DEFAULT_COUNTRY)
- , encoding_str(DEFAULT_ENCODING)
{
string lang;
string country;
@@ -103,10 +101,6 @@ Guess::Guess(const char * guess_str)
language_str=lang;
}
country_str=country;
-
- if(enc!=""){//if not we use the default value
- encoding_str=enc;
- }
}
}
diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx
index 5227c8f12be8..9277f94c559d 100644
--- a/lingucomponent/source/languageguessing/guess.hxx
+++ b/lingucomponent/source/languageguessing/guess.hxx
@@ -51,7 +51,6 @@ class Guess final {
private:
string language_str;
string country_str;
- string encoding_str;
};
#endif