diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-10-16 08:59:22 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-10-16 08:59:22 +0300 |
commit | d2ed493a4c0285ff711fcbb86abe6f7025cfd072 (patch) | |
tree | 1f54655c8543e60dcd22ffc120d6c711bd42d944 /sw | |
parent | 3e2bd1e4022e25b77bcc8eba5e02c1adc57008a1 (diff) |
WaE: Unreferenced function definition
Change-Id: Ibc28879d303fc768014df89df8022e1fd13634dd
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index 66f5c6e1eaa5..c97cdc0472bb 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. |