summaryrefslogtreecommitdiffstats
path: root/transform
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-05-03 23:04:38 +0200
committerbep <bjorn.erik.pedersen@gmail.com>2015-05-03 23:04:37 +0200
commitbe57b1fe1081ddde218a11aefa44c840b8e23106 (patch)
treeafe73a97d70c4c0312392a225099d6a12809a7f5 /transform
parentbe4ca217466d86acb47d935798e3bc824206c74d (diff)
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
Diffstat (limited to 'transform')
-rw-r--r--transform/absurlreplacer.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/transform/absurlreplacer.go b/transform/absurlreplacer.go
index caea5adda..b38dd9a98 100644
--- a/transform/absurlreplacer.go
+++ b/transform/absurlreplacer.go
@@ -281,13 +281,10 @@ func newAbsURLReplacer(baseURL string) *absURLReplacer {
htmlMatchers: []absURLMatcher{
{dqHTMLMatch, dqHTML, base},
{sqHTMLMatch, sqHTML, base},
- {dqHTMLMatch, dqHTML, base},
- {sqHTMLMatch, sqHTML, base}},
+ },
xmlMatchers: []absURLMatcher{
{dqXMLMatch, dqXML, base},
{sqXMLMatch, sqXML, base},
- {dqXMLMatch, dqXML, base},
- {sqXMLMatch, sqXML, base},
}}
}