diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-13 17:29:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-14 10:28:14 +0100 |
commit | 65e17112824967d990536d6a904f0b35a01b5340 (patch) | |
tree | 4ee7ad0a299cfe3fe15de01b0f49a8fc5c60cb9b /sal/osl | |
parent | 9c7647b3b02fc20325e89f437006fca8945c804f (diff) |
I guess FREEBSD doesn't need this implementation of fcvt
The only actual use of fcvt across the codebase has been removed in 2002 with
31cb31335f3bf7e6e57d70ca61bf5a2a536d1e6e "GetStringFromDouble: replaced that
fcvt() and temporary LocaleDataWrapper instance crap" even before this
implementation for FREEBSD was introduce in 2003 with
c61bf41c39daa97d30016eedcd7a0b687c2d8558 "INTEGRATION: CWS ooo11rc: join: from
ooo11beta2".
Change-Id: Ieea9499f001c6eac6383c344afb9050dfc70f43c
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/system.cxx | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sal/osl/unx/system.cxx b/sal/osl/unx/system.cxx index 94e357a67c3e..7003b4ff5a41 100644 --- a/sal/osl/unx/system.cxx +++ b/sal/osl/unx/system.cxx @@ -246,53 +246,6 @@ int macxp_resolveAlias(char *path, int buflen) #endif /* NO_PTHREAD_RTL */ -#if defined(FREEBSD) -char *fcvt(double value, int ndigit, int *decpt, int *sign) -{ - static char ret[256]; - char buf[256],zahl[256],format[256]="%"; - - if (value==0.0) value=1e-30; - - if (value<0.0) *sign=1; else *sign=0; - - if (value<1.0) - { - *decpt=(int)log10(value); - value*=pow(10.0,1-*decpt); - ndigit+=*decpt-1; - if (ndigit<0) ndigit=0; - } - else - { - *decpt=(int)log10(value)+1; - } - - sprintf(zahl,"%d",ndigit); - strcat(format,zahl); - strcat(format,"."); - strcat(format,zahl); - strcat(format,"f"); - - sprintf(buf,format,value); - - if (ndigit!=0) - { - char *v1=strtok(buf,"."); - char *v2=strtok(NULL,"."); - strcpy(ret,v1); - strcat(ret,v2); - } - else - { - strcpy(ret,buf); - } - - return ret; -} - -#endif - //might be useful on other platforms, but doesn't compiler under MACOSX anyway #if defined(__GNUC__) && defined(LINUX) //force the __data_start symbol to exist in any executables that link against |