From dd86bc5adf703f3d36f91220d9c8a6247db37a07 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 27 Sep 2007 02:29:32 +0000 Subject: [PATCH] remove some leftovers from the advanced bar --- macosx/TorrentCell.h | 2 -- macosx/TorrentCell.m | 31 ------------------------------- 2 files changed, 33 deletions(-) diff --git a/macosx/TorrentCell.h b/macosx/TorrentCell.h index 599160c8e..e2550a7bc 100644 --- a/macosx/TorrentCell.h +++ b/macosx/TorrentCell.h @@ -34,8 +34,6 @@ NSColor * fBarOverlayColor; CTGradient * fWhiteGradient, * fGrayGradient, * fLightGrayGradient, * fBlueGradient, * fDarkBlueGradient, * fGreenGradient, * fLightGreenGradient, * fDarkGreenGradient, * fYellowGradient, * fTransparentGradient; - NSBitmapImageRep * fBitmap; - int8_t * fPieces; } - (NSRect) iconRectForBounds: (NSRect) bounds; diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index c54a59365..2647239b4 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -68,18 +68,6 @@ @implementation TorrentCell -// Used to optimize drawing. They contain packed RGBA pixels for every color needed. -#define BE OSSwapBigToHostConstInt32 - -static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 - kBlue = BE(0x50A0FFFF), //80, 160, 255 - kBlue2 = BE(0x1E46B4FF), //30, 70, 180 - kGray = BE(0x969696FF), //150, 150, 150 - kGreen1 = BE(0x99FFCCFF), //153, 255, 204 - kGreen2 = BE(0x66FF99FF), //102, 255, 153 - kGreen3 = BE(0x00FF66FF), //0, 255, 102 - kWhite = BE(0xFFFFFFFF); //255, 255, 255 - //only called one, so don't worry about release - (id) init { @@ -103,25 +91,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 return self; } -- (id) copyWithZone: (NSZone *) zone -{ - TorrentCell * copy = [super copyWithZone: zone]; - - copy->fBitmap = nil; - copy->fPieces = NULL; - - return copy; -} - -- (void) dealloc -{ - [fBitmap release]; - if (fPieces) - free(fPieces); - - [super dealloc]; -} - - (NSRect) iconRectForBounds: (NSRect) bounds { NSRect result = bounds;