Skip to content

Commit

Permalink
Removing a useless try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
samirmenon committed Nov 24, 2011
1 parent 611a483 commit 874a23b
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/sutil/CMappedList.hpp
Expand Up @@ -623,25 +623,17 @@ namespace sutil
{ return NULL; }
else
{
try
if(map_.find(arg_idx) == map_.end())
{
if(map_.find(arg_idx) == map_.end())
{
return NULL;
}

SMLNode<Idx,T> * t = map_[arg_idx];

if(NULL==t)
{ return NULL; }
else
{ return t->data_; }
}
catch(std::exception &e)
{
//TODO : print something
return NULL;
}

SMLNode<Idx,T> * t = map_[arg_idx];

if(NULL==t)
{ return NULL; }
else
{ return t->data_; }
}
}

Expand Down

0 comments on commit 874a23b

Please sign in to comment.