From c8b32752463057fd3d2d71475bb6dafbef72234b Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 6 Nov 2012 20:32:09 +0000 Subject: [PATCH] Removed the unused function TgtTranslateStr. git-svn-id: svn://svn.cc65.org/cc65/trunk@5920 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/common/tgttrans.c | 24 +++--------------------- src/common/tgttrans.h | 17 ++++++----------- 2 files changed, 9 insertions(+), 32 deletions(-) diff --git a/src/common/tgttrans.c b/src/common/tgttrans.c index c184f0dfb..dff5238e1 100644 --- a/src/common/tgttrans.c +++ b/src/common/tgttrans.c @@ -1,12 +1,12 @@ /*****************************************************************************/ /* */ -/* tgttrans.c */ +/* tgttrans.c */ /* */ -/* Character set translation */ +/* Character set translation */ /* */ /* */ /* */ -/* (C) 2000-2011, Ullrich von Bassewitz */ +/* (C) 2000-2012, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -96,24 +96,6 @@ int TgtTranslateChar (int C) -char* TgtTranslateStr (char* S) -/* Translate a complete string from the source character set into the target - * system character set. - */ -{ - /* Translate */ - unsigned char* T = (unsigned char*)S; - while (*T) { - *T = Tab[*T]; - ++T; - } - - /* Return the argument string */ - return S; -} - - - void TgtTranslateBuf (void* Buf, unsigned Len) /* Translate a buffer of the given length from the source character set into * the target system character set. diff --git a/src/common/tgttrans.h b/src/common/tgttrans.h index 51bf8ebbb..6a54cfc4a 100644 --- a/src/common/tgttrans.h +++ b/src/common/tgttrans.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000-2008 Ullrich von Bassewitz */ -/* Roemerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2000-2012, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -34,7 +34,7 @@ #ifndef TGTTRANS_H -#define TGTTRANS_H +#define TGTTRANS_H @@ -57,18 +57,13 @@ int TgtTranslateChar (int C); * system character set. */ -char* TgtTranslateStr (char* S); -/* Translate a complete string from the source character set into the target - * system character set. - */ - void TgtTranslateBuf (void* Buf, unsigned Len); /* Translate a buffer of the given length from the source character set into * the target system character set. */ void TgtTranslateStrBuf (StrBuf* Buf); -/* Translate a string buffer from the source character set into the target +/* Translate a string buffer from the source character set into the target * system character set. */ -- 2.39.5