diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-29 12:40:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-29 15:08:43 +0200 |
commit | 34180700b2686c97cdce0b52ca9578a41a153035 (patch) | |
tree | 073f3753e4483f30efa3c7c769f23971e6a046d5 /rsc/source/tools/rsctools.cxx | |
parent | e710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff) |
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'rsc/source/tools/rsctools.cxx')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index 45f29afe004a..51ce98ce5314 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -88,45 +88,6 @@ OString GetTmpFileName() return OUStringToOString( aTmpFile, RTL_TEXTENCODING_MS_1252 ); } -bool Append(FILE * fDest, const OString &rTmpFile) -{ -#define MAX_BUF 4096 - FILE *fSource = fopen(rTmpFile.getStr(), "rb"); - if( !fDest || !fSource ) - { - if( fSource ) - fclose( fSource ); - return false; - } - - bool bSuccess = true; - char szBuf[ MAX_BUF ]; - size_t nItems; - - do //append - { - nItems = fread( szBuf, 1, MAX_BUF, fSource ); - bSuccess = (nItems == fwrite(szBuf, 1, nItems, fDest)); - SAL_WARN_IF(!bSuccess, "rsc", "short write"); - } - while (MAX_BUF == nItems && bSuccess); - - fclose( fSource ); - return bSuccess; -} - -bool Append(const OString &rOutputSrs, const OString &rTmpFile) -{ - FILE * fDest = fopen(rOutputSrs.getStr(), "ab"); - - bool bRet = Append(fDest, rTmpFile); - - if( fDest ) - fclose( fDest ); - - return bRet; -} - /* replaces extension of a file name */ OString OutputFile(const OString &rInput, const char * pExt) { |