Removed unused line

I realized I had one unused line in this, so I removed it. Also, the
code used as base for creating this function can be found here:
http://bl.ocks.org/mbostock/4063269