summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-09 12:18:28 +0100
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-09 12:21:15 +0100
commitde69091d34d8102c0b56194d603ed9e66699d34c (patch)
tree3003251aeec776d0f8c44820a72846fa7772be5f /l10ntools
parent8885dc27da82f83d27eb99f8bea4abb5e450fce3 (diff)
Delete PoHeader constructor used by renewpo
Change-Id: I360a9c96eacf9b7b8bd80214a3fc4c9faa01e631
Diffstat (limited to 'l10ntools')
-rwxr-xr-x[-rw-r--r--]l10ntools/inc/po.hxx1
-rwxr-xr-x[-rw-r--r--]l10ntools/source/po.cxx36
2 files changed, 0 insertions, 37 deletions
diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx
index 506558f20119..f2edb0684ee2 100644..100755
--- a/l10ntools/inc/po.hxx
+++ b/l10ntools/inc/po.hxx
@@ -90,7 +90,6 @@ public:
friend class PoIfstream;
PoHeader( const OString& rExtSrc );
- PoHeader( std::ifstream& rOldPo );
~PoHeader();
};
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 90b7f79eefa5..99e113b2739f 100644..100755
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -619,16 +619,6 @@ namespace
strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow );
return pBuff;
}
-
- static OString lcl_ReplaceAttribute(
- const OString& rSource, const OString& rOld, const OString& rNew )
- {
- const sal_Int32 nFirstIndex =
- rSource.indexOf( rOld ) + rOld.getLength()+2;
- const sal_Int32 nCount =
- rSource.indexOf( "\n", nFirstIndex ) - nFirstIndex;
- return rSource.replaceFirst( rSource.copy(nFirstIndex, nCount), rNew );
- }
}
//Template Constructor
@@ -653,32 +643,6 @@ PoHeader::PoHeader( const OString& rExtSrc )
m_bIsInitialized = true;
}
-
-//Constructor for old headers to renew po files
-PoHeader::PoHeader( std::ifstream& rOldPo )
- : m_pGenPo( new GenPoEntry() )
- , m_bIsInitialized( false )
-{
- assert( rOldPo.is_open() );
- m_pGenPo->readFromFile( rOldPo );
-
- const OString sExtractCom = m_pGenPo->getExtractCom();
- m_pGenPo->setExtractCom(
- sExtractCom.copy( 0, sExtractCom.getLength() - 3 ) );
-
- OString sMsgStr = m_pGenPo->getMsgStr();
- sMsgStr =
- lcl_ReplaceAttribute( sMsgStr, "Report-Msgid-Bugs-To",
- "https://bugs.freedesktop.org/enter_bug.cgi?product="
- "LibreOffice&bug_status=UNCONFIRMED&component=UI" );
- sMsgStr =
- lcl_ReplaceAttribute( sMsgStr, "X-Generator", "LibreOffice" );
- sMsgStr =
- lcl_ReplaceAttribute( sMsgStr, "X-Accelerator-Marker", "~" );
- m_pGenPo->setMsgStr( sMsgStr );
- m_bIsInitialized = true;
-}
-
PoHeader::~PoHeader()
{
delete m_pGenPo;