From 4eeb2e644208cfdd458fdef2f2f1971ee5f41320 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 26 Jul 2011 14:13:50 -0400 Subject: [PATCH] Only one loop needed. --- src/TimingData.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 5c06652041..d087616b2c 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -21,10 +21,8 @@ bool TimingData::empty() const { for (unsigned i = 0; i < NUM_TimingSegmentType; i++) { - for (unsigned j = 0; j < this->allTimingSegments[i].size(); j++) - { + if (this->allTimingSegments[i].size() > 0) return false; - } } return true; }