Author: rmottola
Date: Tue Feb 16 18:58:02 2016
New Revision: 39380

URL: http://svn.gna.org/viewcvs/gnustep?rev=39380&view=rev
Log:
remove unused mountedVolumes method

Modified:
    apps/gworkspace/trunk/FSNode/FSNodeRep.h
    apps/gworkspace/trunk/FSNode/FSNodeRep.m

Modified: apps/gworkspace/trunk/FSNode/FSNodeRep.h
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/FSNode/FSNodeRep.h?rev=39380&r1=39379&r2=39380&view=diff
==============================================================================
--- apps/gworkspace/trunk/FSNode/FSNodeRep.h    (original)
+++ apps/gworkspace/trunk/FSNode/FSNodeRep.h    Tue Feb 16 18:58:02 2016
@@ -507,8 +507,6 @@
 
 @interface NSWorkspace (mounting)
 
-- (NSArray *)mountedVolumes;
-
 - (NSArray *)removableMediaPaths;
 
 - (NSArray *)reservedMountNames;

Modified: apps/gworkspace/trunk/FSNode/FSNodeRep.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/FSNode/FSNodeRep.m?rev=39380&r1=39379&r2=39380&view=diff
==============================================================================
--- apps/gworkspace/trunk/FSNode/FSNodeRep.m    (original)
+++ apps/gworkspace/trunk/FSNode/FSNodeRep.m    Tue Feb 16 18:58:02 2016
@@ -741,57 +741,6 @@
 
 @implementation NSWorkspace (mounting)
 
-- (NSArray *)mountedVolumes
-{
-  NSMutableArray *volumes = [NSMutableArray array];
-
-#ifdef HAVE_GETMNTINFO
-  /* most BSDs and derivatives inclusing Apple */
-  struct statfs *buf;
-  int i, count;
-  
-  count = getmntinfo(&buf, 0);
-  
-  for (i = 0; i < count; i++)
-    {
-      NSMutableDictionary *dict = [NSMutableDictionary dictionary];  
-  
-      [dict setObject: [NSString stringWithUTF8String: buf[i].f_mntfromname]
-              forKey: @"name"]; 
-      [dict setObject: [NSString stringWithUTF8String: buf[i].f_mntonname]
-              forKey: @"dir"]; 
-      [dict setObject: [NSString stringWithUTF8String: buf[i].f_fstypename]
-              forKey: @"type"]; 
-
-      [volumes addObject: dict];
-    }
-#elif defined(HAVE_GETMNTENT) && defined(MNT_DIR)
-  FILE *fp = setmntent(_PATH_MOUNTED, "r");
-  struct mntent        *mnt;
-
-  if (fp)
-    {
-      while ((mnt = getmntent(fp)) != NULL )
-       { 
-         NSMutableDictionary *dict = [NSMutableDictionary dictionary];
-
-         [dict setObject: [NSString stringWithUTF8String: mnt->MNT_FSNAME]
-                  forKey: @"name"]; 
-         [dict setObject: [NSString stringWithUTF8String: mnt->MNT_DIR]
-                  forKey: @"dir"];  
-         [dict setObject: [NSString stringWithUTF8String: mnt->MNT_FSTYPE]
-                  forKey: @"type"];  
-
-         [volumes addObject: dict];
-       }
-      
-      endmntent(fp);
-    }            
-#endif
-
-  NSLog(@"Volumes %@", volumes);   
-  return volumes;
-}
 
 - (NSArray *)removableMediaPaths
 {


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to