From afc98ac91e3ee21a872f51e91452dd76adec7bba Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 21 Nov 2007 20:22:04 +0000 Subject: [PATCH] get rid of an unnecessary width check --- macosx/MessageWindowController.m | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 2f63e609a..841d6334b 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -175,16 +175,10 @@ { NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"]; - int count = 0; - float width = [column width]; - if (width > 0) - { - if (!fAttributes) - fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain]; - - count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / width; - } + if (!fAttributes) + fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain]; + int count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / [column width]; return [tableView rowHeight] * (float)(count+1); }