From e993de1033a7dc3db37941d43d247d44a2f59794 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 25 Aug 2012 16:34:35 +0300 Subject: [PATCH] commands: Remove Z.ScoreString method. --- commands.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands.go b/commands.go index 5683e70d..b350f9ad 100644 --- a/commands.go +++ b/commands.go @@ -712,14 +712,10 @@ type ZStore struct { Aggregate string } -func (m *Z) ScoreString() string { - return formatFloat(m.Score) -} - func (c *Client) ZAdd(key string, members ...Z) *IntReq { args := []string{"ZADD", key} for _, m := range members { - args = append(args, m.ScoreString(), m.Member) + args = append(args, formatFloat(m.Score), m.Member) } req := NewIntReq(args...) c.Process(req)