Skip to content

Commit

Permalink
Merge pull request #2819 from ipfs/cleanup/dht
Browse files Browse the repository at this point in the history
clean up some dead code in the dht
  • Loading branch information
whyrusleeping committed Jun 8, 2016
2 parents 868969f + 3d38fae commit bee40b1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 100 deletions.
10 changes: 0 additions & 10 deletions routing/dht/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ func NewDHT(ctx context.Context, h host.Host, dstore ds.Datastore) *IpfsDHT {
return dht
}

// LocalPeer returns the peer.Peer of the dht.
func (dht *IpfsDHT) LocalPeer() peer.ID {
return dht.self
}

// log returns the dht's logger
func (dht *IpfsDHT) log() logging.EventLogger {
return log // TODO rm
}

// putValueToPeer stores the given key/value pair at the peer 'p'
func (dht *IpfsDHT) putValueToPeer(ctx context.Context, p peer.ID,
key key.Key, rec *pb.Record) error {
Expand Down
46 changes: 0 additions & 46 deletions routing/dht/dht_logger.go

This file was deleted.

44 changes: 0 additions & 44 deletions routing/dht/diag.go

This file was deleted.

0 comments on commit bee40b1

Please sign in to comment.