From a6a51b6a69bd14c6ad67a8e6629cf405034dd701 Mon Sep 17 00:00:00 2001 From: Kevin Hunter <hunteke@earlham.edu> Date: Tue, 4 Oct 2011 18:56:18 -0400 Subject: Simplify logic to use std::vector's .empty() No need to muck about with iterators, adding a loop, and 2 function calls to test for empty: it's a std::vector under the hood, so use .empty(), and inline it. --- autodoc/source/ary_i/kernel/ci_text2.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'autodoc/source') diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx index 00a5a7eb32fc..66702af381e3 100644 --- a/autodoc/source/ary_i/kernel/ci_text2.cxx +++ b/autodoc/source/ary_i/kernel/ci_text2.cxx @@ -76,18 +76,6 @@ DocuTex2::AddToken( DYN DocuToken & let_drToken ) } aTokens.push_back(&let_drToken); } - -bool -DocuTex2::IsEmpty() const -{ - for ( ary::inf::DocuTex2::TokenList::const_iterator - iter = aTokens.begin(); - iter != aTokens.end(); - ) - { - return false; - } - return true; } using csi::dsapi::DT_TextToken; -- cgit