]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: remove unused atof32int function
authorShawn Smith <shawn.p.smith@gmail.com>
Fri, 27 Dec 2013 16:40:03 +0000 (08:40 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 27 Dec 2013 16:40:03 +0000 (08:40 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/44200044

src/pkg/strconv/atof.go

index 1b3f8fb33de66734c9b52a47b07e00f16a5cfc84..286206481b25b1fd65794628a50f697ec67c84ed 100644 (file)
@@ -353,17 +353,6 @@ out:
        return bits, overflow
 }
 
-func (d *decimal) atof32int() float32 {
-       f := float32(0)
-       for i := 0; i < d.nd; i++ {
-               f = f*10 + float32(d.d[i]-'0')
-       }
-       if d.neg {
-               f = -f
-       }
-       return f
-}
-
 // Exact powers of 10.
 var float64pow10 = []float64{
        1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,