diff options
Diffstat (limited to 'testnet/TestEthernetTapFactory.cpp')
| -rw-r--r-- | testnet/TestEthernetTapFactory.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/testnet/TestEthernetTapFactory.cpp b/testnet/TestEthernetTapFactory.cpp index c4a8a988..836f586e 100644 --- a/testnet/TestEthernetTapFactory.cpp +++ b/testnet/TestEthernetTapFactory.cpp @@ -54,10 +54,6 @@ EthernetTap *TestEthernetTapFactory::open( _taps.insert(tap); } { - Mutex::Lock _l(_tapsByDevice_m); - _tapsByDevice[tap->deviceName()] = tap; - } - { Mutex::Lock _l(_tapsByMac_m); _tapsByMac[mac] = tap; } @@ -74,10 +70,6 @@ void TestEthernetTapFactory::close(EthernetTap *tap,bool destroyPersistentDevice _taps.erase(tapp); } { - Mutex::Lock _l(_tapsByDevice_m); - _tapsByDevice.erase(tapp->deviceName()); - } - { Mutex::Lock _l(_tapsByMac_m); _tapsByMac.erase(tapp->mac()); } |
