Removed dead assignments found by static code analyser.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-03-13 15:26:20 +00:00
parent 0a2f6bd2df
commit b7d056ae43
15 changed files with 52 additions and 58 deletions

View file

@ -24,8 +24,8 @@
Boston, MA 02110-1301, USA.
*/
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
@interface GSNamedColorPicker: NSColorPicker <NSColorPickingCustom>
{
@ -106,12 +106,24 @@
NSColor *c = [color colorUsingColorSpaceName: NSNamedColorSpace];
NSString *list;
NSString *name;
unsigned int index;
if (c == nil)
return;
list = [c catalogNameComponent];
name = [c colorNameComponent];
// Select the correspondig entries in the lists
index = [self comboBox: cb
indexOfItemWithStringValue: list];
if (index == NSNotFound)
return;
[cb selectItemAtIndex: index];
index = [[currentList allKeys] indexOfObject: name];
if (index == NSNotFound)
return;
[browser selectRow: index inColumn: 0];
}
- (void) loadViews

View file

@ -26,15 +26,15 @@
Boston, MA 02110-1301, USA.
*/
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <GNUstepGUI/GSVbox.h>
#include <GNUstepGUI/GSHbox.h>
#include "GSRGBColorPicker.h"
#include "GSHSBColorPicker.h"
#include "GSCMYKColorPicker.h"
#include "GSGrayColorPicker.h"
#include "GSStandardColorPicker.h"
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <GNUstepGUI/GSVbox.h>
#import <GNUstepGUI/GSHbox.h>
#import "GSRGBColorPicker.h"
#import "GSHSBColorPicker.h"
#import "GSCMYKColorPicker.h"
#import "GSGrayColorPicker.h"
#import "GSStandardColorPicker.h"
@implementation GSStandardColorPicker
@ -238,20 +238,10 @@
- (void) _showNewPicker: (id) sender
{
NSView *currentView;
//NSLog(@"Old View size %@", NSStringFromRect([currentView frame]));
currentPicker = [pickers objectAtIndex: [sender selectedColumn]];
[currentPicker setColor: [_colorPanel color]];
//NSLog(@"Base View size %@", NSStringFromRect([baseView frame]));
/* [baseView putView: [currentPicker provideNewView: NO]
atRow: 0
column: 0
withMargins: 0];*/
[pickerBox setContentView: [currentPicker provideNewView: NO]];
currentView = [currentPicker provideNewView: NO];
//NSLog(@"New View size %@", NSStringFromRect([currentView frame]));
// Show the new image
[imageCell setImage: [[sender selectedCell] image]];
}