summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-22 11:38:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 08:59:20 +0200
commitcb37c5f0f3de7b545231a53d46a5271058af76ad (patch)
tree8281f1ceb0363276f29526d9307ba2647679e54c /l10ntools
parent0f347c04bf1305c634b761f92ff487e831bc564c (diff)
loplugin:unusedfields in jvmfwk..mysqlc
Change-Id: If9c7a3239fceba9a2db3a5905ccaa7fa9adadb08 Reviewed-on: https://gerrit.libreoffice.org/39099 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/lngmerge.hxx1
-rw-r--r--l10ntools/source/lngmerge.cxx9
2 files changed, 1 insertions, 9 deletions
diff --git a/l10ntools/inc/lngmerge.hxx b/l10ntools/inc/lngmerge.hxx
index beab0c937360..6d47bfcaf199 100644
--- a/l10ntools/inc/lngmerge.hxx
+++ b/l10ntools/inc/lngmerge.hxx
@@ -43,7 +43,6 @@ typedef std::vector< OString* > LngLineList;
class LngParser
{
private:
- sal_uInt16 nError;
LngLineList *pLines;
OString sSource;
std::vector<OString> aLanguages;
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 513c36e13e56..540110f99822 100644
--- a/l10ntools/source/lngmerge.cxx
+++ b/l10ntools/source/lngmerge.cxx
@@ -49,8 +49,7 @@ void lcl_RemoveUTF8ByteOrderMarker( OString &rString )
// class LngParser
LngParser::LngParser(const OString &rLngFile)
- : nError( LNG_OK )
- , pLines( nullptr )
+ : pLines( nullptr )
, sSource( rLngFile )
{
pLines = new LngLineList;
@@ -76,8 +75,6 @@ LngParser::LngParser(const OString &rLngFile)
}
pLines->push_back( new OString() );
}
- else
- nError = LNG_COULD_NOT_OPEN;
}
LngParser::~LngParser()
@@ -166,10 +163,6 @@ bool LngParser::Merge(
{
std::ofstream aDestination(
rDestinationFile.getStr(), std::ios_base::out | std::ios_base::trunc);
- if (!aDestination.is_open()) {
- nError = LNG_COULD_NOT_OPEN;
- }
- nError = LNG_OK;
MergeDataFile aMergeDataFile( rPOFile, sSource, false, true );
if( rLanguage.equalsIgnoreAsciiCase("ALL") )