Skip to content

Commit

Permalink
FAB-3527 fix unused variables/functions
Browse files Browse the repository at this point in the history
remove unused variables and functions found by unused

Change-Id: I6fdd15fce8c002b853e63730cdac90f281d3fb5b
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
  • Loading branch information
christo4ferris committed Apr 30, 2017
1 parent a0763aa commit 3d895a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions peer/channel/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"
"strings"

"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/msp"
"github.com/hyperledger/fabric/peer/common"
ab "github.com/hyperledger/fabric/protos/orderer"
Expand All @@ -33,8 +32,6 @@ import (

const channelFuncName = "channel"

var logger = flogging.MustGetLogger("channelCmd")

var (
// join related variables.
genesisBlockPath string
Expand Down
8 changes: 0 additions & 8 deletions peer/channel/deliverclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ func seekHelper(chainID string, start *ab.SeekPosition) *common.Envelope {
return env
}

func (r *deliverClient) seekOldest() error {
return r.client.Send(seekHelper(r.chainID, &ab.SeekPosition{Type: &ab.SeekPosition_Oldest{Oldest: &ab.SeekOldest{}}}))
}

func (r *deliverClient) seekNewest() error {
return r.client.Send(seekHelper(r.chainID, &ab.SeekPosition{Type: &ab.SeekPosition_Newest{Newest: &ab.SeekNewest{}}}))
}

func (r *deliverClient) seek(blockNumber uint64) error {
return r.client.Send(seekHelper(r.chainID, &ab.SeekPosition{Type: &ab.SeekPosition_Specified{Specified: &ab.SeekSpecified{Number: blockNumber}}}))
}
Expand Down

0 comments on commit 3d895a4

Please sign in to comment.