Author: rmottola
Date: Sat Feb 13 23:21:57 2016
New Revision: 39371

URL: http://svn.gna.org/viewcvs/gnustep?rev=39371&view=rev
Log:
Delete unmountAndEjectDeviceAtPath custom implementation and use AppKit's one

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

Modified: apps/gworkspace/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/ChangeLog?rev=39371&r1=39370&r2=39371&view=diff
==============================================================================
--- apps/gworkspace/trunk/ChangeLog     (original)
+++ apps/gworkspace/trunk/ChangeLog     Sat Feb 13 23:21:57 2016
@@ -1,3 +1,8 @@
+2016-02-13  Riccardo Mottola <r...@gnu.org>
+
+       * FSNode/FSNodeRep.m
+       Delete unmountAndEjectDeviceAtPath custom implementation and use 
AppKit's one.
+
 2016-02-12  Riccardo Mottola <r...@gnu.org>
 
        * FSNode/FSNodeRep.h

Modified: apps/gworkspace/trunk/FSNode/FSNodeRep.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/FSNode/FSNodeRep.m?rev=39371&r1=39370&r2=39371&view=diff
==============================================================================
--- apps/gworkspace/trunk/FSNode/FSNodeRep.m    (original)
+++ apps/gworkspace/trunk/FSNode/FSNodeRep.m    Sat Feb 13 23:21:57 2016
@@ -999,53 +999,6 @@
   return newlyMountedMedia;
 }
 
-- (BOOL)unmountAndEjectDeviceAtPath:(NSString *)path
-{
-  unsigned int systype = [[NSProcessInfo processInfo] operatingSystem];
-  NSArray      *volumes = [self mountedLocalVolumePaths];
-
-  if ([volumes containsObject: path])
-    {
-      NSDictionary *userinfo;
-      NSTask *task;
-      
-      userinfo = [NSDictionary dictionaryWithObject: path forKey: 
@"NSDevicePath"];
-      
-      [[self notificationCenter] postNotificationName: 
NSWorkspaceWillUnmountNotification
-                                               object: self
-                                             userInfo: userinfo];
-      
-      task = [NSTask launchedTaskWithLaunchPath: @"umount"
-                                      arguments: [NSArray arrayWithObject: 
path]];
-      
-      if (task)
-        {
-          [task waitUntilExit];
-          if ([task terminationStatus] != 0)
-            {
-              return NO;
-            } 
-        }
-      else
-        {
-          return NO;
-        }
-      
-      [[self notificationCenter] postNotificationName: 
NSWorkspaceDidUnmountNotification
-                                               object: self
-                                             userInfo: userinfo];
-      
-      if (systype == NSGNULinuxOperatingSystem)
-        {
-          [NSTask launchedTaskWithLaunchPath: @"eject"
-                                   arguments: [NSArray arrayWithObject: path]];
-        }
-      
-      return YES;
-    }
-  
-  return NO;
-}
 
 @end
 


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

Reply via email to