that was a misdirected optimisation. remove.

SVN revision: 31660
This commit is contained in:
Carsten Haitzler 2007-09-09 02:00:45 +00:00
parent f23046c780
commit e45ff14147
1 changed files with 0 additions and 7 deletions

View File

@ -225,7 +225,6 @@ eet_data_put_char(const void *src, int *size_ret)
d = (char *)malloc(sizeof(char));
if (!d) return NULL;
s = (char *)src;
// if (*s == 0) return NULL;
*d = *s;
CONV8(*d);
*size_ret = sizeof(char);
@ -253,7 +252,6 @@ eet_data_put_short(const void *src, int *size_ret)
d = (short *)malloc(sizeof(short));
if (!d) return NULL;
s = (short *)src;
// if (*s == 0) return NULL;
*d = *s;
CONV16(*d);
*size_ret = sizeof(short);
@ -281,7 +279,6 @@ eet_data_put_int(const void *src, int *size_ret)
d = (int *)malloc(sizeof(int));
if (!d) return NULL;
s = (int *)src;
// if (*s == 0) return NULL;
*d = *s;
CONV32(*d);
*size_ret = sizeof(int);
@ -309,7 +306,6 @@ eet_data_put_long_long(const void *src, int *size_ret)
d = (unsigned long long *)malloc(sizeof(unsigned long long));
if (!d) return NULL;
s = (unsigned long long *)src;
// if (*s == 0) return NULL;
*d = *s;
CONV64(*d);
*size_ret = sizeof(unsigned long long);
@ -349,7 +345,6 @@ eet_data_put_string(const void *src, int *size_ret)
s = (char *)(*((char **)src));
if (!s) return NULL;
// if (!s) s = (char *)empty_s;
len = strlen(s);
d = malloc(len + 1);
if (!d) return NULL;
@ -394,7 +389,6 @@ eet_data_put_float(const void *src, int *size_ret)
int len;
s = (float *)src;
// if (*s == 0.0) return NULL;
prev_locale = setlocale(LC_NUMERIC, "C");
snprintf(buf, sizeof(buf), "%a", (double)(*s));
if (prev_locale) setlocale(LC_NUMERIC, prev_locale);
@ -442,7 +436,6 @@ eet_data_put_double(const void *src, int *size_ret)
int len;
s = (double *)src;
// if (*s == 0.0) return NULL;
prev_locale = setlocale(LC_NUMERIC, "C");
snprintf(buf, sizeof(buf), "%a", (double)(*s));
if (prev_locale) setlocale(LC_NUMERIC, prev_locale);