Revision: 18360
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18360&view=rev
Author: hofman
Date: 2012-01-03 14:32:13 +0000 (Tue, 03 Jan 2012)
Log Message:
-----------
remove unused argument from method
Modified Paths:
--------------
trunk/bibdesk/BDSKPasswordController.h
trunk/bibdesk/BDSKPasswordController.m
trunk/bibdesk/BibPref_Sharing.m
Modified: trunk/bibdesk/BDSKPasswordController.h
===================================================================
--- trunk/bibdesk/BDSKPasswordController.h 2012-01-03 13:39:15 UTC (rev
18359)
+++ trunk/bibdesk/BDSKPasswordController.h 2012-01-03 14:32:13 UTC (rev
18360)
@@ -48,7 +48,7 @@
+ (NSData *)passwordForKeychainServiceName:(NSString *)name;
-+ (BOOL)addOrModifyPassword:(NSString *)password name:(NSString *)name
userName:(NSString *)userName;
++ (BOOL)addOrModifyPassword:(NSString *)password name:(NSString *)name;
+ (NSData *)runModalPanelForKeychainServiceName:(NSString *)aName
message:(NSString *)status;
Modified: trunk/bibdesk/BDSKPasswordController.m
===================================================================
--- trunk/bibdesk/BDSKPasswordController.m 2012-01-03 13:39:15 UTC (rev
18359)
+++ trunk/bibdesk/BDSKPasswordController.m 2012-01-03 14:32:13 UTC (rev
18360)
@@ -61,9 +61,9 @@
return pwData;
}
-+ (BOOL)addOrModifyPassword:(NSString *)password name:(NSString *)name
userName:(NSString *)userName {
++ (BOOL)addOrModifyPassword:(NSString *)password name:(NSString *)name {
// default is to use current user's username
- const char *userNameCString = userName == nil ? [NSUserName() UTF8String]
: [userName UTF8String];
+ const char *userNameCString = [NSUserName() UTF8String];
NSParameterAssert(name != nil);
const char *nameCString = [name UTF8String];
@@ -103,7 +103,7 @@
NSAssert(name != nil, @"name is nil");
password = [[[passwordField stringValue] retain] autorelease];
NSParameterAssert(password != nil);
- [[self class] addOrModifyPassword:password name:name userName:nil];
+ [[self class] addOrModifyPassword:password name:name];
}
[[self window] orderOut:self];
Modified: trunk/bibdesk/BibPref_Sharing.m
===================================================================
--- trunk/bibdesk/BibPref_Sharing.m 2012-01-03 13:39:15 UTC (rev 18359)
+++ trunk/bibdesk/BibPref_Sharing.m 2012-01-03 14:32:13 UTC (rev 18360)
@@ -100,7 +100,7 @@
- (void)defaultsDidRevert {
// always clear the password, as that's not set in our prefs, and always
send the notifications
- [BDSKPasswordController addOrModifyPassword:@""
name:BDSKServiceNameForKeychain userName:nil];
+ [BDSKPasswordController addOrModifyPassword:@""
name:BDSKServiceNameForKeychain];
if ([sud boolForKey:BDSKShouldLookForSharedFilesKey])
[[BDSKSharingBrowser sharedBrowser] enableSharedBrowsing];
else
@@ -188,7 +188,7 @@
- (IBAction)changePassword:(id)sender
{
- if ([BDSKPasswordController addOrModifyPassword:[sender stringValue]
name:BDSKServiceNameForKeychain userName:nil])
+ if ([BDSKPasswordController addOrModifyPassword:[sender stringValue]
name:BDSKServiceNameForKeychain])
[[NSNotificationCenter defaultCenter]
postNotificationName:BDSKSharingPasswordChangedNotification object:nil];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit