From 3d1d09d6d61ef76d8cbeddb47b084189ba030873 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Tue, 1 Apr 2008 16:10:09 +0200 Subject: [PATCH] Removed an unused function, it is replaced by getTable() in FieldImpl. --- src/DAL/TableImpl.cpp | 11 ----------- src/DAL/TableImpl.h | 4 ---- 2 files changed, 15 deletions(-) diff --git a/src/DAL/TableImpl.cpp b/src/DAL/TableImpl.cpp index 34a081b..cbb25e3 100644 --- a/src/DAL/TableImpl.cpp +++ b/src/DAL/TableImpl.cpp @@ -64,17 +64,6 @@ Strings TableImpl::tableList(SelectionMaskPtr mask) return String::Get()->createTable(result, headerfields); } -bool TableImpl::hasfield(FieldImplPtr field) const -{ - for(FieldImplVector::const_iterator it = m_fields.begin(); it != m_fields.end(); it++) - { - if((*it) == field) - return true; - } - - return false; -} - KeyImplPtr TableImpl::firstkey() const { Assert(m_primarykeysize == 1); diff --git a/src/DAL/TableImpl.h b/src/DAL/TableImpl.h index 188b57e..41ef62b 100644 --- a/src/DAL/TableImpl.h +++ b/src/DAL/TableImpl.h @@ -77,10 +77,6 @@ public: /** Returns the first key of this table, keysize is asserted to be 1. */ KeyImplPtr firstkey() const; - /** Returns wether a field is present in this table. */ - bool hasfield(FieldImplPtr field) const; - - protected: void updateFieldCount(); -- 2.11.4.GIT