From e36a8d35b8a7d49e18e8d31f0ff77f60728d106e Mon Sep 17 00:00:00 2001 From: jim teeuwen Date: Thu, 20 Jan 2011 12:13:49 +0100 Subject: [PATCH] Fix for Go release 2011-01-19/20 --- xmlx/node.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/xmlx/node.go b/xmlx/node.go index ac03319..97de685 100644 --- a/xmlx/node.go +++ b/xmlx/node.go @@ -117,20 +117,6 @@ func (this *Node) U64(namespace, name string) uint64 { // Deprecated - use Node.U64() func (this *Node) GetValueui64(namespace, name string) uint64 { return this.U64(namespace, name) } - -// Get node value as float -func (this *Node) F(namespace, name string) float { - if node := rec_SelectNode(this, namespace, name); node != nil && node.Value != "" { - n, _ := strconv.Atof(node.Value) - return n - } - return 0 -} - -// Deprecated - use Node.F() -func (this *Node) GetValuef(namespace, name string) float { return this.F(namespace, name) } - - // Get node value as float32 func (this *Node) F32(namespace, name string) float32 { if node := rec_SelectNode(this, namespace, name); node != nil && node.Value != "" { @@ -231,20 +217,6 @@ func (this *Node) Ai64(namespace, name string) int64 { // Deprecated - use Node.Ai64() func (this *Node) GetAttri64(namespace, name string) int64 { return this.Ai64(namespace, name) } - -// Get attribute value as float -func (this *Node) Af(namespace, name string) float { - if s := this.As(namespace, name); s != "" { - n, _ := strconv.Atof(s) - return n - } - return 0 -} - -// Deprecated - use Node.Af() -func (this *Node) GetAttrf(namespace, name string) float { return this.Af(namespace, name) } - - // Get attribute value as float32 func (this *Node) Af32(namespace, name string) float32 { if s := this.As(namespace, name); s != "" {