summaryrefslogtreecommitdiff
path: root/autodoc/source
diff options
context:
space:
mode:
authorKevin Hunter <hunteke@earlham.edu>2011-10-10 13:58:25 -0400
committerKevin Hunter <hunteke@earlham.edu>2011-10-10 13:58:25 -0400
commit60f108553552eba8441589c47294f252e4ace1e5 (patch)
treeacbddd7889d08f9d1f7063502fc334baa583859c /autodoc/source
parent76a0e6ee30cb7610bc0eb1d536476fc801f3a3bf (diff)
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.
Diffstat (limited to 'autodoc/source')
-rw-r--r--autodoc/source/ary_i/kernel/ci_text2.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx
index 00a5a7eb32fc..dea062f4aca5 100644
--- a/autodoc/source/ary_i/kernel/ci_text2.cxx
+++ b/autodoc/source/ary_i/kernel/ci_text2.cxx
@@ -77,18 +77,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;