[Libreoffice-commits] core.git: sw/source

Tor Lillqvist tml at collabora.com
Wed Oct 15 23:01:12 PDT 2014


 sw/source/filter/basflt/iodetect.cxx |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit d2ed493a4c0285ff711fcbb86abe6f7025cfd072
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Oct 16 08:59:22 2014 +0300

    WaE: Unreferenced function definition
    
    Change-Id: Ibc28879d303fc768014df89df8022e1fd13634dd

diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index 66f5c6e..c97cdc0 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -184,20 +184,6 @@ bool SwIoSystem::IsValidStgFilter(SotStorage& rStg, const SfxFilter& rFilter)
     return bRet;
 }
 
-void TerminateBuffer(sal_Char *pBuffer, sal_uLong nBytesRead, sal_uLong nBufferLen)
-{
-    OSL_ENSURE(nBytesRead <= nBufferLen - 2,
-            "what you read must be less than the max + null termination");
-    OSL_ENSURE(!(nBufferLen & 0x00000001), "nMaxReadBuf must be an even number");
-    if (nBytesRead <= nBufferLen - 2)
-    {
-        pBuffer[nBytesRead] = '\0';
-        pBuffer[nBytesRead+1] = '\0';
-        if (nBytesRead & 0x00000001)
-            pBuffer[nBytesRead+2] = '\0';
-    }
-}
-
 // Check the type of the stream (file) by searching for corresponding set of bytes.
 // If no known type is found, return ASCII for now!
 // Returns the internal FilterName.


More information about the Libreoffice-commits mailing list