adium 2255:466095d45b0c: Remove unused function

commits at adium.im commits at adium.im
Wed May 20 06:28:16 UTC 2009


details:	http://hg.adium.im/adium/rev/466095d45b0c
revision:	2255:466095d45b0c
author:		David Smith <catfish.man at gmail.com>
date:		Tue May 19 23:27:53 2009 -0700

Remove unused function

diffstat:

 Frameworks/AIUtilities Framework/Source/AIFunctions.h            |   8 --
 Frameworks/AIUtilities Framework/Source/AIFunctions.m            |  36 ------------
 Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m |  32 ----------
 3 files changed, 0 insertions(+), 76 deletions(-)

diffs (106 lines):

diff -r c8fc34031054 -r 466095d45b0c Frameworks/AIUtilities Framework/Source/AIFunctions.h
--- a/Frameworks/AIUtilities Framework/Source/AIFunctions.h	Wed May 20 01:20:27 2009 -0400
+++ b/Frameworks/AIUtilities Framework/Source/AIFunctions.h	Tue May 19 23:27:53 2009 -0700
@@ -13,14 +13,6 @@
  | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  \------------------------------------------------------------------------------------------------------ */
 
-/*!	@brief Obtains the high and low surrogate for a Unicode code-point.
- *
- *	If \a in is lower than U+10FFF (which means it would not require surrogates to construct), \c *outHigh will be 0, and \c *outLow will be \a in.
- *
- *	@return The high and low surrogate (if applicable), or 0 and the input character.
- */
-BOOL AIGetSurrogates(UTF32Char in, UTF16Char *outHigh, UTF16Char *outLow);
-
 #pragma mark Rect utilities
 /*!	@defgroup AIRectUtilities Rectangle utilities
  *
diff -r c8fc34031054 -r 466095d45b0c Frameworks/AIUtilities Framework/Source/AIFunctions.m
--- a/Frameworks/AIUtilities Framework/Source/AIFunctions.m	Wed May 20 01:20:27 2009 -0400
+++ b/Frameworks/AIUtilities Framework/Source/AIFunctions.m	Tue May 19 23:27:53 2009 -0700
@@ -14,42 +14,6 @@
  \------------------------------------------------------------------------------------------------------ */
 
 #import "AIFunctions.h"
-#import <sys/types.h>
-#import <sys/mman.h>
-#import <malloc/malloc.h>
-#import <stdlib.h>
-
-BOOL AIGetSurrogates(UTF32Char in, UTF16Char *outHigh, UTF16Char *outLow)
-{
-	if (in < 0x10000) {
-		if (outHigh) *outHigh = 0;
-		if (outLow)  *outLow  = in;
-		return NO;
-	} else {
-		enum {
-			UTF32LowShiftToUTF16High = 10,
-			UTF32HighShiftToUTF16High,
-			UTF16HighMask = 31,  //0b0000 0111 1100 0000
-			UTF16LowMask  = 63,  //0b0000 0000 0011 1111
-			UTF32LowMask = 1023, //0b0000 0011 1111 1111
-			UTF16HighAdditiveMask = 55296, //0b1101 1000 0000 0000
-			UTF16LowAdditiveMask  = 56320, //0b1101 1100 0000 0000
-		};
-
-		if (outHigh) {
-			*outHigh = \
-				  ((in >> UTF32HighShiftToUTF16High) & UTF16HighMask) \
-				| ((in >> UTF32LowShiftToUTF16High) & UTF16LowMask) \
-				| UTF16HighAdditiveMask;
-		}
-
-		if (outLow) {
-			*outLow = (in & UTF32LowMask) | UTF16LowAdditiveMask;
-		}
-
-		return YES;
-	}
-}
 
 #pragma mark Rect utilities
 
diff -r c8fc34031054 -r 466095d45b0c Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m
--- a/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m	Wed May 20 01:20:27 2009 -0400
+++ b/Other/Adium Spotlight Importer/GetMetadataForHTMLLog-Additions.m	Tue May 19 23:27:53 2009 -0700
@@ -63,38 +63,6 @@
 //From AIUtilities
 @implementation NSString (AdiumSpotlightImporterAdditions)
 
-BOOL AIGetSurrogates(UTF32Char in, UTF16Char *outHigh, UTF16Char *outLow)
-{
-	if (in < 0x10000) {
-		if (outHigh) *outHigh = 0;
-		if (outLow)  *outLow  = in;
-		return NO;
-	} else {
-		enum {
-			UTF32LowShiftToUTF16High = 10,
-			UTF32HighShiftToUTF16High,
-			UTF16HighMask = 31,  //0b0000 0111 1100 0000
-			UTF16LowMask  = 63,  //0b0000 0000 0011 1111
-			UTF32LowMask = 1023, //0b0000 0011 1111 1111
-			UTF16HighAdditiveMask = 55296, //0b1101 1000 0000 0000
-			UTF16LowAdditiveMask  = 56320, //0b1101 1100 0000 0000
-		};
-		
-		if (outHigh) {
-			*outHigh = \
-			((in >> UTF32HighShiftToUTF16High) & UTF16HighMask) \
-			| ((in >> UTF32LowShiftToUTF16High) & UTF16LowMask) \
-			| UTF16HighAdditiveMask;
-		}
-		
-		if (outLow) {
-			*outLow = (in & UTF32LowMask) | UTF16LowAdditiveMask;
-		}
-		
-		return YES;
-	}
-}
-
 /*
  * @brief Read a string from a file, assuming it to be UTF8
  *




More information about the commits mailing list