absurlreplacer: remove superfluous code, take 2
authorbep <bjorn.erik.pedersen@gmail.com>
Sun, 3 May 2015 21:04:38 +0000 (23:04 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Sun, 3 May 2015 21:04:37 +0000 (23:04 +0200)
commitbe57b1fe1081ddde218a11aefa44c840b8e23106
treeafe73a97d70c4c0312392a225099d6a12809a7f5
parentbe4ca217466d86acb47d935798e3bc824206c74d
absurlreplacer: remove superfluous code, take 2

 ```
benchmark                    old ns/op     new ns/op     delta
BenchmarkAbsURL              17946         17454         -2.74%
BenchmarkAbsURLSrcset        19236         18979         -1.34%
BenchmarkXMLAbsURLSrcset     19046         18688         -1.88%
BenchmarkXMLAbsURL           9561          9432          -1.35%

benchmark                    old allocs     new allocs     delta
BenchmarkAbsURL              24             24             +0.00%
BenchmarkAbsURLSrcset        29             29             +0.00%
BenchmarkXMLAbsURLSrcset     27             27             +0.00%
BenchmarkXMLAbsURL           12             12             +0.00%

benchmark                    old bytes     new bytes     delta
BenchmarkAbsURL              3139          3139          +0.00%
BenchmarkAbsURLSrcset        2374          2369          -0.21%
BenchmarkXMLAbsURLSrcset     2574          2572          -0.08%
BenchmarkXMLAbsURL           1871          1871          +0.00%

```

See #1059
transform/absurlreplacer.go