File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -1106,29 +1106,6 @@ bool CSubNet::IsValid() const
1106
1106
return valid;
1107
1107
}
1108
1108
1109
- bool CSubNet::SanityCheck () const
1110
- {
1111
- switch (network.m_net ) {
1112
- case NET_IPV4:
1113
- case NET_IPV6:
1114
- break ;
1115
- case NET_ONION:
1116
- case NET_I2P:
1117
- case NET_CJDNS:
1118
- return true ;
1119
- case NET_INTERNAL:
1120
- case NET_UNROUTABLE:
1121
- case NET_MAX:
1122
- return false ;
1123
- }
1124
-
1125
- for (size_t x = 0 ; x < network.m_addr .size (); ++x) {
1126
- if (network.m_addr [x] & ~netmask[x]) return false ;
1127
- }
1128
-
1129
- return true ;
1130
- }
1131
-
1132
1109
bool operator ==(const CSubNet& a, const CSubNet& b)
1133
1110
{
1134
1111
return a.valid == b.valid && a.network == b.network && !memcmp (a.netmask , b.netmask , 16 );
Original file line number Diff line number Diff line change @@ -476,8 +476,6 @@ class CSubNet
476
476
// / Is this value valid? (only used to signal parse errors)
477
477
bool valid;
478
478
479
- bool SanityCheck () const ;
480
-
481
479
public:
482
480
/* *
483
481
* Construct an invalid subnet (empty, `Match()` always returns false).
You can’t perform that action at this time.
0 commit comments