diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-01 19:40:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:44 -0500 |
commit | 2ae9a0b4d83f10af02a75a16673cdef9c4f3873b (patch) | |
tree | dbf53b33f6c16a1c307eb6eed626ed23d2de6b08 /source3 | |
parent | 0a754ca75c557ce3fd3893c5505d7bfacb586327 (diff) | |
download | samba-2ae9a0b4d83f10af02a75a16673cdef9c4f3873b.tar.gz samba-2ae9a0b4d83f10af02a75a16673cdef9c4f3873b.tar.bz2 samba-2ae9a0b4d83f10af02a75a16673cdef9c4f3873b.zip |
r23671: Remove unused code -- 16416 bytes of bss space...
(This used to be commit 25f3bfdb1f60ab17af05608481068299da94cec9)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/intl.h | 1 | ||||
-rw-r--r-- | source3/intl/lang_tdb.c | 26 |
2 files changed, 0 insertions, 27 deletions
diff --git a/source3/include/intl.h b/source3/include/intl.h index 01fa3bad97..58f21e359b 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -21,5 +21,4 @@ /* ideally we would have a static mapping, but that precludes dynamic loading. This is a reasonable compromise */ -#define _(x) lang_msg_rotate(x) #define N_(x) (x) diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c index 2ccd2073db..c2def85d6e 100644 --- a/source3/intl/lang_tdb.c +++ b/source3/intl/lang_tdb.c @@ -231,32 +231,6 @@ void lang_msg_free(const char *msgstr) free((void *)msgstr); } - -/* - when the _() translation macro is used there is no obvious place to free - the resulting string and there is no easy way to give a static pointer. - All we can do is rotate between some static buffers and hope a single d_printf() - doesn't have more calls to _() than the number of buffers -*/ -const char *lang_msg_rotate(const char *msgid) -{ -#define NUM_LANG_BUFS 16 - char *msgstr; - static pstring bufs[NUM_LANG_BUFS]; - static int next; - - msgstr = (char *)lang_msg(msgid); - if (!msgstr) return msgid; - - pstrcpy(bufs[next], msgstr); - msgstr = bufs[next]; - - next = (next+1) % NUM_LANG_BUFS; - - return msgstr; -} - - /* return the current language - needed for language file mappings */ |