summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-08-28 01:45:01 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-08-27 18:10:33 +0200
commitbbf3da220e8c031022098a4414fd367c39e228c5 (patch)
treeff9e8827d2309cbf5eae59596383012e1aa811dd /sal
parent8233349b6de3bdfa025aec21a93f68c622e22627 (diff)
osl: remove commented out reversemap functions
Change-Id: I0354cf98ba3804505970e881dfff45a4d9a227da Reviewed-on: https://gerrit.libreoffice.org/41609 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/socket.cxx90
1 files changed, 0 insertions, 90 deletions
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx
index 074358907fd4..90cb1175d17e 100644
--- a/sal/osl/unx/socket.cxx
+++ b/sal/osl/unx/socket.cxx
@@ -118,22 +118,6 @@ static const sal_uInt32 ProtocolMap[]= {
0 /* osl_Socket_ProtocolInvalid */
};
-/* mfe: NOT USED
-static oslProtocol osl_ProtocolFromNative(sal_uInt32 nativeType)
-{
- oslProtocol i= (oslProtocol)0;
-
- while(i != osl_Socket_ProtocolInvalid)
- {
- if(ProtocolMap[i] == nativeType)
- return i;
- i = (oslProtocol) ( i + 1);
- }
-
- return i;
-}
-*/
-
#define PROTOCOL_TO_NATIVE(x) ProtocolMap[x]
static const sal_uInt32 TypeMap[]= {
@@ -184,21 +168,6 @@ static const sal_uInt32 OptionMap[]= {
0 /* osl_Socket_OptionInvalid */
};
-/* mfe: NOT USED
-static oslSocketOption osl_SocketOptionFromNative(sal_uInt32 nativeType)
-{
- oslSocketOption i= (oslSocketOption)0;
-
- while(i != osl_Socket_OptionInvalid)
- {
- if(OptionMap[i] == nativeType)
- return i;
- i = (oslSocketOption) ( i + 1 );
- }
-
- return i;
-}
-*/
#define OPTION_TO_NATIVE(x) OptionMap[x]
static const sal_uInt32 OptionLevelMap[]= {
@@ -207,21 +176,6 @@ static const sal_uInt32 OptionLevelMap[]= {
0 /* osl_Socket_LevelInvalid */
};
-/* mfe: NOT USED
-static oslSocketOptionLevel osl_SocketOptionLevelFromNative(sal_uInt32 nativeType)
-{
- oslSocketOptionLevel i= (oslSocketOptionLevel)0;
-
- while(i != osl_Socket_LevelInvalid)
- {
- if(OptionLevelMap[i] == nativeType)
- return i;
- i = (oslSocketOptionLevel) ( i + 1 );
- }
-
- return i;
-}
-*/
#define OPTION_LEVEL_TO_NATIVE(x) OptionLevelMap[x]
static const sal_uInt32 SocketMsgFlagMap[]= {
@@ -233,22 +187,6 @@ static const sal_uInt32 SocketMsgFlagMap[]= {
0 /* osl_Socket_MsgInvalid */
};
-/* mfe: NOT USED
-static oslSocketMsgFlag osl_SocketMsgFlagFromNative(sal_uInt32 nativeType)
-{
- oslSocketMsgFlag i= (oslSocketMsgFlag)0;
-
- while(i != osl_Socket_MsgInvalid)
- {
- if(SocketMsgFlagMap[i] == nativeType)
- return i;
- i = (oslSocketMsgFlag) ( i + 1 );
- }
-
- return i;
-}
-*/
-
#define MSG_FLAG_TO_NATIVE(x) SocketMsgFlagMap[x]
static const sal_uInt32 SocketDirection[]= {
@@ -258,22 +196,6 @@ static const sal_uInt32 SocketDirection[]= {
0 /* osl_Socket_DirInvalid */
};
-/* mfe: NOT USED
-static oslSocketDirection osl_SocketDirectionFromNative(sal_uInt32 nativeType)
-{
- oslSocketDirection i= (oslSocketDirection)0;
-
- while(i != osl_Socket_DirInvalid)
- {
- if(SocketDirection[i] == nativeType)
- return i;
- i = (oslSocketDirection) ( i + 1 );
- }
-
- return i;
-}
-*/
-
#define DIRECTION_TO_NATIVE(x) SocketDirection[x]
static const struct
@@ -317,18 +239,6 @@ static const struct
{ -1, osl_Socket_E_InvalidError }
};
-/* mfe: NOT USED
-static int osl_NativeFromSocketError(oslSocketError errorCode)
-{
- int i = 0;
-
- while ((SocketError[i].error != osl_Socket_E_InvalidError) &&
- (SocketError[i].error != errorCode)) i++;
-
- return SocketError[i].errcode;
-}
-*/
-
static oslSocketError osl_SocketErrorFromNative(int nativeType)
{
int i = 0;