adium 3323:0e3dafd316e8: Remove prefix code path that will never...

commits at adium.im commits at adium.im
Sun Sep 19 23:00:39 UTC 2010


details:	http://hg.adium.im/adium/rev/0e3dafd316e8
revision:	3323:0e3dafd316e8
author:		Robert Vehse
date:		Mon Sep 20 00:42:20 2010 +0200

Remove prefix code path that will never be used. Refs #13987. Patch by "mlei". Thanks!

diffs (15 lines):

diff -r a9575b3b3163 -r 0e3dafd316e8 Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Sun Sep 19 16:01:38 2010 -0500
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Mon Sep 20 00:42:20 2010 +0200
@@ -1089,9 +1089,8 @@
 				completion = aliasOrDisplayName;
 			}
 			
-			// Add what we came up with to the completions list (with suffix and prefix if required)
-			NSString *completionWithSuffix = (suffix ? [completion stringByAppendingString:suffix] : completion);
-			[completions addObject:(prefix ? [prefix stringByAppendingString:completionWithSuffix] : completionWithSuffix)];
+			// Add what we came up with to the completions list (with suffix if required)
+			[completions addObject:(suffix ? [completion stringByAppendingString:suffix] : completion)];
 		}
 		
 		if ([self.chat.displayName rangeOfString:partialWord options:(NSDiacriticInsensitiveSearch | NSCaseInsensitiveSearch | NSAnchoredSearch)].location != NSNotFound) {




More information about the commits mailing list