epee: remove save_limit_to_file

This commit is contained in:
tobtoht
2026-04-28 19:21:12 +02:00
parent 9d7ba46a36
commit 5723d6b6f1
2 changed files with 0 additions and 6 deletions
@@ -184,7 +184,6 @@ class connection_basic { // not-templated base class for rapid developmet of som
// handlers and sleep // handlers and sleep
void sleep_before_packet(size_t packet_size, int phase, int q_len); // execute a sleep ; phase is not really used now(?) void sleep_before_packet(size_t packet_size, int phase, int q_len); // execute a sleep ; phase is not really used now(?)
static void save_limit_to_file(int limit); ///< for dr-monero
static double get_sleep_time(size_t cb); static double get_sleep_time(size_t cb);
}; };
-5
View File
@@ -182,7 +182,6 @@ void connection_basic::set_rate_up_limit(uint64_t limit) {
CRITICAL_REGION_LOCAL( network_throttle_manager::m_lock_get_global_throttle_out ); CRITICAL_REGION_LOCAL( network_throttle_manager::m_lock_get_global_throttle_out );
network_throttle_manager::get_global_throttle_out().set_target_speed(limit); network_throttle_manager::get_global_throttle_out().set_target_speed(limit);
} }
save_limit_to_file(limit);
} }
void connection_basic::set_rate_down_limit(uint64_t limit) { void connection_basic::set_rate_down_limit(uint64_t limit) {
@@ -195,7 +194,6 @@ void connection_basic::set_rate_down_limit(uint64_t limit) {
CRITICAL_REGION_LOCAL( network_throttle_manager::m_lock_get_global_throttle_inreq ); CRITICAL_REGION_LOCAL( network_throttle_manager::m_lock_get_global_throttle_inreq );
network_throttle_manager::get_global_throttle_inreq().set_target_speed(limit); network_throttle_manager::get_global_throttle_inreq().set_target_speed(limit);
} }
save_limit_to_file(limit);
} }
uint64_t connection_basic::get_rate_up_limit() { uint64_t connection_basic::get_rate_up_limit() {
@@ -216,9 +214,6 @@ uint64_t connection_basic::get_rate_down_limit() {
return limit; return limit;
} }
void connection_basic::save_limit_to_file(int limit) {
}
void connection_basic::set_tos_flag(int tos) { void connection_basic::set_tos_flag(int tos) {
connection_basic_pimpl::m_default_tos = tos; connection_basic_pimpl::m_default_tos = tos;
} }