Permalink
Browse files

Removed not needed anymore `replace` function

  • Loading branch information...
1 parent 1bd9a78 commit 5afa79786e7ea6390d24b2eb523f801f99545410 @kizu kizu committed Aug 23, 2013
Showing with 1 addition and 24 deletions.
  1. +0 −23 lib/nib/gradients.styl
  2. +1 −1 package.json
View
@@ -2,20 +2,6 @@
@import 'config'
/*
- * Replace the given str with val in the expr.
- */
-
-replace(expr, str, val)
- expr = clone(expr)
- for e, i in expr
- if length(e) > 1
- expr[i] = replace(e, str, val)
- else
- if str == e
- expr[i] = val
- expr
-
-/*
* Implicit color stop position.
*/
@@ -85,15 +71,6 @@ std-stop(color, pos)
linear-gradient(start, stops...)
error('color stops required') unless length(stops)
- // if current-property
- // if start is a 'color'
- // unshift(stops, start)
- // start = top
- // if start[0] is a 'unit'
- // if has-canvas
- // img = linear-gradient-image(start, stops)
- // add-property(prop, replace(val, '__CALL__', img))
- // start = start[1]
unquote('linear-gradient(' + join(', ',arguments) + ')')
View
@@ -7,7 +7,7 @@
"url": "git://github.com/visionmedia/nib.git"
},
"dependencies": {
- "stylus": "~0.35.1"
+ "stylus": "~0.37.0"
},
"devDependencies": {
"connect": "1.x",

0 comments on commit 5afa797

Please sign in to comment.