Author: rmottola
Date: Thu Dec  3 18:13:52 2015
New Revision: 39215

URL: http://svn.gna.org/viewcvs/gnustep?rev=39215&view=rev
Log:
remove unused function

Modified:
    apps/gworkspace/trunk/Inspector/Functions.m

Modified: apps/gworkspace/trunk/Inspector/Functions.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/Inspector/Functions.m?rev=39215&r1=39214&r2=39215&view=diff
==============================================================================
--- apps/gworkspace/trunk/Inspector/Functions.m (original)
+++ apps/gworkspace/trunk/Inspector/Functions.m Thu Dec  3 18:13:52 2015
@@ -1,6 +1,6 @@
 /* Functions.m
  *  
- * Copyright (C) 2004-2013 Free Software Foundation, Inc.
+ * Copyright (C) 2004-2015 Free Software Foundation, Inc.
  *
  * Author: Enrico Sersale <[email protected]>
  * Date: January 2004
@@ -32,52 +32,6 @@
 #define ONE_MB (ONE_KB * ONE_KB)
 #define ONE_GB (ONE_KB * ONE_MB)
 
-static inline NSString *cut_Text(NSString *filename, id label, int lenght)
-{
-  NSString *cutname = nil;
-  NSString *reststr = nil;
-  NSString *dots;
-  NSFont *labfont;
-  NSDictionary *attr;
-  float w, cw, dotslenght;
-  int i;
-
-  cw = 0;
-  labfont = [label font];
-  
-  attr = [NSDictionary dictionaryWithObjectsAndKeys: 
-                                               labfont, NSFontAttributeName, 
nil];  
-  
-  dots = @"...";  
-       dotslenght = [dots sizeWithAttributes: attr].width;  
-  w = [filename sizeWithAttributes: attr].width;
-  
-       if (w > lenght) {
-               i = 0;
-               while (cw <= (lenght - dotslenght)) {
-                       if (i == [filename length]) {
-                               break;
-      }
-                       cutname = [filename substringToIndex: i];
-                       reststr = [filename substringFromIndex: i];
-      cw = [cutname sizeWithAttributes: attr].width;
-                       i++;
-               }       
-               if ([cutname isEqual: filename] == NO) {      
-                       if ([reststr length] <= 3) { 
-                               return filename;
-                       } else {
-                               cutname = [cutname stringByAppendingString: 
dots];
-      }
-               } else {
-                       return filename;
-               }       
-       } else {
-               return filename;
-       }
-  
-       return cutname;
-}
 
 static NSString *fix_path(NSString *s, const char *c)
 {


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to