diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-27 12:04:31 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-01 18:47:05 +0100 |
commit | 41f935ddb2e2d5dbe3da05794ba4f74a84311cfb (patch) | |
tree | c0093a30ee4c0cfda70e1385a42326ba67465198 /src/p2p/network_throttle.hpp | |
parent | Merge pull request #2159 (diff) | |
download | monero-41f935ddb2e2d5dbe3da05794ba4f74a84311cfb.tar.xz |
network_throttle: remove unneeded heap allocations
This will keep leak traces less noisy, as those were one off
allocations that were technically leaking.
Diffstat (limited to 'src/p2p/network_throttle.hpp')
-rw-r--r-- | src/p2p/network_throttle.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/p2p/network_throttle.hpp b/src/p2p/network_throttle.hpp index a747cdd71..81d77d5c0 100644 --- a/src/p2p/network_throttle.hpp +++ b/src/p2p/network_throttle.hpp @@ -111,13 +111,6 @@ class network_throttle_manager { //protected: public: // XXX - // [[note1]] - static boost::once_flag m_once_get_global_throttle_in; - static boost::once_flag m_once_get_global_throttle_inreq; // [[note2]] - static boost::once_flag m_once_get_global_throttle_out; - static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_in; - static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_inreq; - static std::unique_ptr<i_network_throttle> m_obj_get_global_throttle_out; static boost::mutex m_lock_get_global_throttle_in; static boost::mutex m_lock_get_global_throttle_inreq; |