summaryrefslogtreecommitdiff
path: root/macosx/PluginList.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-06-26 05:13:18 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-06-26 05:13:18 +0000
commit7ab7abce029631c5a5127b8de9bb068d887c81ef (patch)
tree3cacf01c4fa92e49389fd60e80a2c0cc263d352f /macosx/PluginList.m
parente80786f8fa5438eb331c9da542064cf876a956aa (diff)
downloadpcsxr-7ab7abce029631c5a5127b8de9bb068d887c81ef.tar.gz
Getting rid of commented-out code.
Other minor changes. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85565 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PluginList.m')
-rwxr-xr-xmacosx/PluginList.m62
1 files changed, 0 insertions, 62 deletions
diff --git a/macosx/PluginList.m b/macosx/PluginList.m
index 330f8be7..fac8f4b4 100755
--- a/macosx/PluginList.m
+++ b/macosx/PluginList.m
@@ -24,68 +24,6 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD,
return sPluginList;
}
-#if 0
-+ (void)loadPlugins
-{
- NSDirectoryEnumerator *dirEnum;
- NSString *pname, *dir;
-
- // Make sure we only load the plugins once
- if (plugins != nil)
- return;
-
- plugins = [[NSMutableArray alloc] initWithCapacity: 20];
-
- dir = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:Config.PluginsDir length:strlen(Config.PluginsDir)];
- dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:dir];
-
- while (pname = [dirEnum nextObject]) {
- if ([[pname pathExtension] isEqualToString:@"psxplugin"] ||
- [[pname pathExtension] isEqualToString:@"so"]) {
- [dirEnum skipDescendents]; /* don't enumerate this
- directory */
-
- PcsxrPlugin *plugin = [[PcsxrPlugin alloc] initWithPath:pname];
- if (plugin != nil) {
- [plugins addObject:plugin];
- }
- }
- }
-}
-
-- (id)initWithType:(int)typeMask
-{
- unsigned int i;
-
- self = [super init];
-
- [PluginList loadPlugins];
- list = [[NSMutableArray alloc] initWithCapacity: 5];
-
- type = typeMask;
- for (i=0; i<[plugins count]; i++) {
- PcsxrPlugin *plugin = [plugins objectAtIndex:i];
- if ([plugin type] == type) {
- [list addObject:plugin];
- }
- }
-
- return self;
-}
-
-- (int)numberOfItems
-{
- return [list count];
-}
-
-- (id)objectAtIndex:(unsigned)index
-{
- return [list objectAtIndex:index];
-}
-#endif
-
-
-
- (id)init
{
NSUInteger i;