Skip to content

Commit

Permalink
removed no-longer-needed class extensions from nuke
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks committed Feb 14, 2013
1 parent 2a7602d commit 1901dff
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tools/nuke
Expand Up @@ -74,20 +74,7 @@
(set components (self componentsSeparatedByString:"/"))
(components objectAtIndex:(- (components count) 1))))

(class NSDictionary
;; Create a dictionary from a list.
(+ (id) dictionaryWithList: (id) l is
(set dict ((NSMutableDictionary alloc) init))
(l eachPair: (do (key object) (dict setObject:object forKey:key)))
dict))

(class NSArray
;; Create an array from a list.
(+ (id) arrayWithList:(id) list is
(set l ((NSMutableArray alloc) init))
(list each: (do (item) (if item (l addObject:item))))
l)

;; Join the non-null members of an array into a string with array elements separated by spaces.
(- (id) join is
((self select:(do (x) x)) componentsJoinedByString:" "))
Expand Down

0 comments on commit 1901dff

Please sign in to comment.