From de69091d34d8102c0b56194d603ed9e66699d34c Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Sat, 9 Mar 2013 12:18:28 +0100 Subject: Delete PoHeader constructor used by renewpo Change-Id: I360a9c96eacf9b7b8bd80214a3fc4c9faa01e631 --- l10ntools/source/po.cxx | 36 ------------------------------------ 1 file changed, 36 deletions(-) mode change 100644 => 100755 l10ntools/source/po.cxx (limited to 'l10ntools/source') diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx old mode 100644 new mode 100755 index 90b7f79eefa5..99e113b2739f --- 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; -- cgit