adium 2096:f0d5cd696286: I think this debug code has served its ...

commits at adium.im commits at adium.im
Wed May 6 09:44:57 UTC 2009


details:	http://hg.adium.im/adium/rev/f0d5cd696286
revision:	2096:f0d5cd696286
author:		David Smith <catfish.man at gmail.com>
date:		Wed May 06 02:44:49 2009 -0700

I think this debug code has served its purpose; I haven't heard any reports of it triggering in a while

diffstat:

 Frameworks/Adium Framework/Source/AIListGroup.m |  20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)

diffs (30 lines):

diff -r 42177f42d64b -r f0d5cd696286 Frameworks/Adium Framework/Source/AIListGroup.m
--- a/Frameworks/Adium Framework/Source/AIListGroup.m	Tue May 05 01:55:43 2009 -0700
+++ b/Frameworks/Adium Framework/Source/AIListGroup.m	Wed May 06 02:44:49 2009 -0700
@@ -158,25 +158,7 @@
  */
 - (AIListObject *)visibleObjectAtIndex:(NSUInteger)index
 {
-	AIListObject *obj = nil;
-	@try
-	{
-	 obj = [_visibleObjects objectAtIndex:index];
-	}
-	@catch(...)
-	{
-		if(![[AIContactHidingController sharedController] visibilityOfListObject:obj inContainer:self]) {
-			AILog(@"Attempted to get visible object at index %i of %@, but %@ is not visible. With contained objects %@, visibility count is %i", index, self, obj, self.containedObjects, self.visibleCount);
-			[self rebuildVisibleCache];
-			AIListObject *obj = [_visibleObjects objectAtIndex:index];
-			if(![[AIContactHidingController sharedController] visibilityOfListObject:obj inContainer:self])
-				AILog(@"Failed to correct for messed up visibleObjectAtIndex by recaching");
-			else
-				AILog(@"Successfully corrected for messed up visibleObjectAtIndex by recaching");
-		}
-	}
-	
-	return obj;
+	return [_visibleObjects objectAtIndex:index];
 }
 
 - (NSUInteger)visibleIndexOfObject:(AIListObject *)obj




More information about the commits mailing list