summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-08-27 23:48:23 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-08-27 23:48:23 +0000
commitbb95f74aedc84f900e8f3f85ed04bb8968919fb0 (patch)
tree8675c6774812eeb9101592f199e9e7a227ebe8f1 /TAO/tao/Transport.cpp
parent0546900b9ef874d4a23fdab6119d6ff5cef3c4fc (diff)
downloadATCD-bb95f74aedc84f900e8f3f85ed04bb8968919fb0.tar.gz
ChangeLogTag: Tue Aug 27 18:31:53 2002 Balachandran Natarajan <bala@isis-server.vuse.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Transport.cpp')
-rw-r--r--TAO/tao/Transport.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index b42243d6a09..79d943f8c0a 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -144,10 +144,7 @@ TAO_Transport::~TAO_Transport (void)
// Avoid making the call if we can. This may be redundant, unless
// someone called handle_close() on the connection handler from
// outside the TAO_Transport.
- if (this->cache_map_entry_ != 0)
- {
- this->transport_cache_manager ().purge_entry (this->cache_map_entry_);
- }
+ this->transport_cache_manager ().purge_entry (this->cache_map_entry_);
}
@@ -369,19 +366,13 @@ TAO_Transport::recache_transport (TAO_Transport_Descriptor_Interface *desc)
void
TAO_Transport::purge_entry (void)
{
- if (this->cache_map_entry_ != 0)
- {
- (void) this->transport_cache_manager ().purge_entry (this->cache_map_entry_);
- }
+ (void) this->transport_cache_manager ().purge_entry (this->cache_map_entry_);
}
int
TAO_Transport::make_idle (void)
{
- if (this->cache_map_entry_ != 0)
- {
- return this->transport_cache_manager ().make_idle (this->cache_map_entry_);
- }
+ return this->transport_cache_manager ().make_idle (this->cache_map_entry_);
return -1;
}
@@ -695,7 +686,7 @@ TAO_Transport::close_connection_shared (int disable_purge,
ACE_Event_Handler * eh)
{
// Purge the entry
- if (!disable_purge && this->cache_map_entry_ != 0)
+ if (!disable_purge)
{
this->transport_cache_manager ().purge_entry (this->cache_map_entry_);
}