Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
remove some unused functions #10501
Conversation
|
utACK ebd0c95 Excellent! Can't believe I haven't found these myself :-) |
|
I guess the Otherwise utACK. |
jonasschnelli
added the
Refactoring
label
Jun 1, 2017
|
@jonasschnelli good catch, I actually removed the definition in wallet.h as well but it somehow didn't make it into the commit. I updated the commit. The rest is just trailing whitespace removed by my editor. |
|
Could you mention the commits which removed the last use of the functions? |
|
@MarcoFalke done. |
| @@ -140,7 +140,6 @@ class CService : public CNetAddr | ||
| CService(const struct in_addr& ipv4Addr, unsigned short port); | ||
| CService(const struct sockaddr_in& addr); | ||
| void Init(); | ||
| - void SetPort(unsigned short portIn); |
benma
Jun 2, 2017
Contributor
Still, unused code is just dead weight and confusing. In this case, it implies that something external to the class is setting the port, but nothing is.
|
@laanwj thanks, I restored GetDestData(). |
|
utACK 65c993c |
|
utACK 65c993c |
|
utACK 65c993c |
|
Needs rebase |
|
Rebased. |
| @@ -242,7 +242,7 @@ class CConnman | ||
| bool DisconnectNode(const std::string& node); | ||
| bool DisconnectNode(NodeId id); | ||
| - unsigned int GetSendBufferSize() const; | ||
| + void AddWhitelistedRange(const CSubNet &subnet); |
|
utACK |
|
Rebased. |
|
utACK f228b8e |
laanwj
merged commit f228b8e
into
bitcoin:master
Jul 27, 2017
1 check passed
laanwj
added a commit
that referenced
this pull request
Jul 27, 2017
|
|
laanwj |
8a99fe0
|
benma commentedJun 1, 2017
•
edited
Identified with
cppcheck --enable=unusedFunction ..991955e
7e195e8
e3ba0ef and never used