Skip to content

Commit

Permalink
Re #7480. Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellTaylor committed Jul 18, 2013
1 parent 4305efd commit 3ae585b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Code/Mantid/MantidQt/SliceViewer/src/QPeaksTableModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,22 +307,19 @@ namespace MantidQt
size_t numToCheck(ids.size());
if (numToCheck > 20) // arbitrary cutoff
numToCheck = 20;
bool hasRectDet(false);
const std::string RECT_DET("RectangularDetector");
for (size_t i = 0; i < numToCheck; ++i)
{
boost::shared_ptr<const Mantid::Geometry::IComponent> component = instr->getDetector(ids[i]);
if (component->type().compare(RECT_DET) == 0)
{
hasRectDet = true;
break;
}
else
{
component = component->getParent();
if (component->type().compare(RECT_DET) == 0)
{
hasRectDet = true;
break;
}
}
Expand Down

0 comments on commit 3ae585b

Please sign in to comment.