Commit 3c1d01f1 authored by Murray Cumming's avatar Murray Cumming
Browse files

Base_DB: Remove an unused get_field_primary_key_for_table().

parent 369df152
......@@ -529,31 +529,6 @@ bool Base_DB::get_field_primary_key_index_for_fields(const type_vec_fields& fiel
return false; //Not found.
}
//static:
bool Base_DB::get_field_primary_key_index_for_fields(const type_vecLayoutFields& fields, guint& field_column)
{
//Initialize input parameter:
field_column = 0;
//TODO_performance: Cache the primary key?
guint col = 0;
guint cols_count = fields.size();
while(col < cols_count)
{
if(fields[col]->get_full_field_details()->get_primary_key())
{
field_column = col;
return true;
}
else
{
++col;
}
}
return false; //Not found.
}
std::shared_ptr<Field> Base_DB::get_field_primary_key_for_table(const Glib::ustring& table_name) const
{
const auto document = get_document();
......
......@@ -292,7 +292,6 @@ protected:
static Glib::RefPtr<Gnome::Gda::Connection> get_connection();
static bool get_field_primary_key_index_for_fields(const type_vec_fields& fields, guint& field_column);
static bool get_field_primary_key_index_for_fields(const type_vecLayoutFields& fields, guint& field_column);
typedef std::vector<Glib::ustring> type_vec_strings;
static type_vec_strings util_vecStrings_from_Fields(const type_vec_fields& fields);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment