1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

remove a few 1.8 -> 1.9 warnings

This commit is contained in:
Mitchell Livingston 2010-01-31 21:25:49 +00:00
parent 40627dc831
commit bc0f2bb3f0
2 changed files with 1 additions and 12 deletions

View file

@ -1263,11 +1263,6 @@ typedef enum
[fRevealDataButton setHidden: YES];
#warning remove after 1.8
[fHashField setSelectable: NO];
[fCreatorField setSelectable: NO];
[fDataLocationField setSelectable: NO];
[fStateField setStringValue: @""];
[fProgressField setStringValue: @""];
@ -1368,11 +1363,6 @@ typedef enum
[fDateAddedField setObjectValue: [torrent dateAdded]];
#warning remove after 1.8
[fHashField setSelectable: YES];
[fCommentView setSelectable: ![commentString isEqualToString: @""]];
[fDataLocationField setSelectable: YES];
//set pieces view
BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
[fPiecesControl setSelected: piecesAvailableSegment forSegment: PIECES_CONTROL_AVAILABLE];

View file

@ -118,9 +118,8 @@
baseString = [NSLocalizedString(@"Last Announce", "Tracker last announce") stringByAppendingFormat: @": %@", dateString];
if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded)
{
#warning after 1.8 fix ugly hack
NSString * peerString;
if (fStat.lastAnnouncePeerCount == 1 && [[[NSLocale currentLocale] localeIdentifier] hasPrefix: @"en_"])
if (fStat.lastAnnouncePeerCount == 1)
peerString = NSLocalizedString(@"got 1 peer", "Tracker last announce");
else
peerString = [NSString stringWithFormat: NSLocalizedString(@"got %d peers", "Tracker last announce"),