mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed unused autoBanIdentitiesLimit variable
This commit is contained in:
parent
f3f0fcea05
commit
3a45bac8e7
@ -160,7 +160,6 @@ p3GxsReputation::p3GxsReputation(p3LinkMgr *lm)
|
||||
mLastBannedNodesUpdate = 0 ;
|
||||
mBannedNodesProxyNeedsUpdate = false;
|
||||
|
||||
mAutoBanIdentitiesLimit = REPUTATION_ASSESSMENT_THRESHOLD_X1;
|
||||
mAutoSetPositiveOptionToContacts = true; // default
|
||||
mMinVotesForRemotelyPositive = REPUTATION_DEFAULT_MIN_VOTES_FOR_REMOTELY_POSITIVE;
|
||||
mMinVotesForRemotelyNegative = REPUTATION_DEFAULT_MIN_VOTES_FOR_REMOTELY_NEGATIVE;
|
||||
@ -1085,10 +1084,6 @@ bool p3GxsReputation::saveList(bool& cleanup, std::list<RsItem*> &savelist)
|
||||
rs_sprintf(kv.value, "%d", mMinVotesForRemotelyNegative);
|
||||
vitem->tlvkvs.pairs.push_back(kv) ;
|
||||
|
||||
kv.key = "AUTO_BAN_IDENTITIES_THRESHOLD" ;
|
||||
rs_sprintf(kv.value, "%f", mAutoBanIdentitiesLimit);
|
||||
vitem->tlvkvs.pairs.push_back(kv) ;
|
||||
|
||||
kv.key = "AUTO_POSITIVE_CONTACTS" ;
|
||||
kv.value = mAutoSetPositiveOptionToContacts?"YES":"NO";
|
||||
vitem->tlvkvs.pairs.push_back(kv) ;
|
||||
@ -1166,17 +1161,6 @@ bool p3GxsReputation::loadList(std::list<RsItem *>& loadList)
|
||||
std::cerr << "Setting mMinVotesForRemotelyNegative threshold to " << val << std::endl ;
|
||||
}
|
||||
};
|
||||
if(kit->key == "AUTO_BAN_IDENTITIES_THRESHOLD")
|
||||
{
|
||||
float val ;
|
||||
|
||||
if (sscanf(kit->value.c_str(), "%f", &val) == 1)
|
||||
{
|
||||
mAutoBanIdentitiesLimit = val ;
|
||||
std::cerr << "Setting AutoBanIdentity threshold to " << val << std::endl ;
|
||||
mLastBannedNodesUpdate = 0 ; // force update
|
||||
}
|
||||
};
|
||||
if(kit->key == "AUTO_POSITIVE_CONTACTS")
|
||||
{
|
||||
mAutoSetPositiveOptionToContacts = (kit->value == "YES");
|
||||
|
@ -183,7 +183,6 @@ private:
|
||||
// PGP Ids auto-banned. This is updated regularly.
|
||||
std::map<RsPgpId,BannedNodeInfo> mBannedPgpIds ;
|
||||
std::set<RsGxsId> mPerNodeBannedIdsProxy ;
|
||||
//uint32_t mPgpAutoBanThreshold ;
|
||||
bool mBannedNodesProxyNeedsUpdate ;
|
||||
|
||||
uint32_t mMinVotesForRemotelyPositive ;
|
||||
|
Loading…
Reference in New Issue
Block a user