From 45ec1d9b56cec41596f806ebf845ebfcd30c9f46 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Dec 2014 09:47:48 +0200 Subject: brute-force find-and-remove of unused #define constants. Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb --- sal/android/uthash.h | 1 - sal/osl/unx/file_error_transl.hxx | 1 - sal/osl/w32/file_url.h | 1 - sal/osl/w32/sockimpl.h | 2 -- sal/qa/osl/socket/osl_Socket_Const_orig.h | 5 ----- 5 files changed, 10 deletions(-) (limited to 'sal') diff --git a/sal/android/uthash.h b/sal/android/uthash.h index 48e7fba81026..076046903046 100644 --- a/sal/android/uthash.h +++ b/sal/android/uthash.h @@ -63,7 +63,6 @@ typedef unsigned int uint32_t; #include /* uint32_t */ #endif -#define UTHASH_VERSION 1.9.3 #define uthash_fatal(msg) exit(-1) /* fatal error (out of memory,etc) */ #define uthash_malloc(sz) malloc(sz) /* malloc fcn */ diff --git a/sal/osl/unx/file_error_transl.hxx b/sal/osl/unx/file_error_transl.hxx index 33f282b8ae97..51be5aacf998 100644 --- a/sal/osl/unx/file_error_transl.hxx +++ b/sal/osl/unx/file_error_transl.hxx @@ -44,7 +44,6 @@ *********************************************/ -#define OSL_FET_SUCCESS false #define OSL_FET_ERROR true oslFileError oslTranslateFileError(bool bIsError, int Errno); diff --git a/sal/osl/w32/file_url.h b/sal/osl/w32/file_url.h index 080b3ca7f93c..9f7a37ffac0f 100644 --- a/sal/osl/w32/file_url.h +++ b/sal/osl/w32/file_url.h @@ -52,7 +52,6 @@ extern "C" { #define VALIDATEPATH_ALLOW_WILDCARDS 0x0001 #define VALIDATEPATH_ALLOW_ELLIPSE 0x0002 #define VALIDATEPATH_ALLOW_RELATIVE 0x0004 -#define VALIDATEPATH_ALLOW_UNC 0x0008 #define VALIDATEPATH_ALLOW_INVALID_SPACE_AND_PERIOD 0x0010 #define MAX_LONG_PATH 32767 diff --git a/sal/osl/w32/sockimpl.h b/sal/osl/w32/sockimpl.h index df56bdbdaeaf..d0e56f1a80d0 100644 --- a/sal/osl/w32/sockimpl.h +++ b/sal/osl/w32/sockimpl.h @@ -52,8 +52,6 @@ void __osl_destroySocketImpl(oslSocket pImpl); /*****************************************************************************/ #define INTERNET_MODULE_NAME "wininet.dll" -#define INTERNET_CONNECTION_MODEM 0x00000001L -#define INTERNET_CONNECTION_LAN 0x00000002L #define INTERNET_CONNECTION_HANGUP 0x80000000L typedef DWORD (WINAPI *INTERNETATTEMPTCONNECT) ( diff --git a/sal/qa/osl/socket/osl_Socket_Const_orig.h b/sal/qa/osl/socket/osl_Socket_Const_orig.h index 43f91d07c6d9..28e2fdc5237b 100644 --- a/sal/qa/osl/socket/osl_Socket_Const_orig.h +++ b/sal/qa/osl/socket/osl_Socket_Const_orig.h @@ -83,14 +83,10 @@ extern "C" #define IP_PORT_ZERO 0 #define IP_PORT_FTP 21 #define IP_PORT_TELNET 23 -#define IP_PORT_SMTP 25 -#define IP_PORT_GOPHER 70 #define IP_PORT_HTTP1 80 #define IP_PORT_POP3 110 #define IP_PORT_NETBIOS_DGM 138 #define IP_PORT_NETBIOS 139 -#define IP_PORT_IMAP 143 -#define IP_PORT_HTTPS 443 #define IP_PORT_HTTP2 8080 /**reference: http://www.iana.org/assignments/port-numbers */ #define IP_PORT_MYPORT 8881 //8888 @@ -105,7 +101,6 @@ extern "C" #define IP_PORT_MYPORT9 8897 #define IP_PORT_MYPORT10 8898 -#define IP_PORT_TMP 9999 #define IP_PORT_INVAL 99999 // service definitions. -- cgit