hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit dbd93f511286c30ef6b7e64ab63d2afbc3a6fb41
parent 004fcddc806d5a05a6d1a908f6ef902ef76aba06
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun, 21 Jun 2015 22:57:42 +0200

Remove unused var

Diffstat:
Mhugolib/shortcode.go | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
@@ -461,7 +461,6 @@ func replaceShortcodeTokens(source []byte, prefix string, replacements map[strin
 	var buff bytes.Buffer
 
 	sourceLen := len(source)
-	width := 0
 	start := 0
 
 	pre := []byte("{@{@" + prefix)
@@ -492,16 +491,14 @@ func replaceShortcodeTokens(source []byte, prefix string, replacements map[strin
 		}
 
 		oldVal := source[j:end]
-		w, err := buff.Write(source[start:j])
+		_, err := buff.Write(source[start:j])
 		if err != nil {
 			return nil, errors.New("buff write failed")
 		}
-		width += w
-		w, err = buff.Write(newVal)
+		_, err = buff.Write(newVal)
 		if err != nil {
 			return nil, errors.New("buff write failed")
 		}
-		width += w
 		start = j + len(oldVal)
 
 		k = bytes.Index(source[start:], pre)