diff --git a/libretroshare/src/services/p3gxsreputation.cc b/libretroshare/src/services/p3gxsreputation.cc index 70aa58ab2..ea0c7f519 100644 --- a/libretroshare/src/services/p3gxsreputation.cc +++ b/libretroshare/src/services/p3gxsreputation.cc @@ -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 &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& 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"); diff --git a/libretroshare/src/services/p3gxsreputation.h b/libretroshare/src/services/p3gxsreputation.h index d5b9a54e6..da7831987 100644 --- a/libretroshare/src/services/p3gxsreputation.h +++ b/libretroshare/src/services/p3gxsreputation.h @@ -183,7 +183,6 @@ private: // PGP Ids auto-banned. This is updated regularly. std::map mBannedPgpIds ; std::set mPerNodeBannedIdsProxy ; - //uint32_t mPgpAutoBanThreshold ; bool mBannedNodesProxyNeedsUpdate ; uint32_t mMinVotesForRemotelyPositive ;