Permalink
Browse files

remove unused code related to “infoFile”

  • Loading branch information...
1 parent 90328d5 commit 480a642b1e002e3ced5459d8aeb667c59557d512 @skurfer committed Feb 14, 2012
Showing with 0 additions and 21 deletions.
  1. +0 −1 Quicksilver/Code-App/QSPlugInsPrefPane.h
  2. +0 −20 Quicksilver/Code-App/QSPlugInsPrefPane.m
@@ -41,7 +41,6 @@
- (IBAction)deleteSelection:(id)sender;
- (void)reloadPlugInsList:(NSNotification *)notif;
-- (BOOL)showInfoForPlugIn:(QSPlugIn *)aPlugin;
- (NSMutableArray *)plugins;
- (void)setPlugins:(NSArray *)newPlugins;
@@ -218,15 +218,6 @@ - (NSArray *)selectedPlugIns {
return bundles;
}
-- (BOOL)selectedPlugInsHaveInfo {
- [self selectedPlugIns];
- NSMutableArray *array = [[[self selectedPlugIns] valueForKeyPath:@"infoDictionary.QSPlugIn.infoFile"] mutableCopy];
- [array removeObject:[NSNull null]];
- BOOL result = [array count];
- [array release];
- return result;
-}
-
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem { return YES; }
- (IBAction)deleteSelection:(id)sender {
@@ -252,19 +243,8 @@ - (IBAction)downloadInBrowser:(id)sender {
[[NSWorkspace sharedWorkspace] openURLs:[[self selectedPlugIns] valueForKey:@"downloadURL"] withAppBundleIdentifier:nil options:NSWorkspaceLaunchDefault additionalEventParamDescriptor:nil launchIdentifiers:nil];
}
-- (BOOL)showInfoForPlugIn:(QSPlugIn *)aPlugin {
- NSBundle *bundle; NSString *helpFile;
- if((bundle = [aPlugin bundle]) && (helpFile = [[bundle objectForInfoDictionaryKey:@"QSPlugIn"] objectForKey:@"infoFile"]))
- if([helpFile length]){
- [[NSWorkspace sharedWorkspace] openFile:[[[bundle bundlePath] stringByAppendingPathComponent:@"Contents/Resources/"] stringByAppendingPathComponent:helpFile]];
- return YES;
- }
- return NO;
-}
-
- (IBAction)getInfo:(id)sender
{
- //[pluginInfoPanel setTitle:[[[arrayController selectedObjects] objectAtIndex:0] name]];
[pluginInfoPanel makeKeyAndOrderFront:sender];
}

0 comments on commit 480a642

Please sign in to comment.