[Libreoffice-commits] core.git: sal/osl

Chris Sherlock chris.sherlock79 at gmail.com
Sun Aug 27 16:15:59 UTC 2017


 sal/osl/unx/socket.cxx |   90 -------------------------------------------------
 1 file changed, 90 deletions(-)

New commits:
commit bbf3da220e8c031022098a4414fd367c39e228c5
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Mon Aug 28 01:45:01 2017 +1000

    osl: remove commented out reversemap functions
    
    Change-Id: I0354cf98ba3804505970e881dfff45a4d9a227da
    Reviewed-on: https://gerrit.libreoffice.org/41609
    Reviewed-by: Chris Sherlock <chris.sherlock79 at gmail.com>
    Tested-by: Chris Sherlock <chris.sherlock79 at gmail.com>

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;


More information about the Libreoffice-commits mailing list