From 25b54108a0849dadff47ebaea3a158fc37d3f004 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 13 Aug 2025 23:12:42 +0200 Subject: [PATCH] Removed deprecations. --- src/gdaex.c | 62 +---------------------------------------------------- src/gdaex.h | 35 +----------------------------- 2 files changed, 2 insertions(+), 95 deletions(-) diff --git a/src/gdaex.c b/src/gdaex.c index f042c2c..2f7efcc 100644 --- a/src/gdaex.c +++ b/src/gdaex.c @@ -1,7 +1,7 @@ /* * gdaex.c * - * Copyright (C) 2005-2020 Andrea Zagli + * Copyright (C) 2005-2025 Andrea Zagli * * This file is part of libgdaex. * @@ -3719,66 +3719,6 @@ gdaex_fill_treemodel_from_datamodel (GdaEx *gdaex, gdaex_fill_treemodel_from_datamodel_with_missing_func (gdaex, store, dm, cols_formatted, format_func, NULL, NULL); } -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_sql_with_missing_func) -void -gdaex_fill_liststore_from_sql_with_missing_func (GdaEx *gdaex, - GtkListStore *lstore, - const gchar *sql, - guint *cols_formatted, - GdaExColsFormatFunc format_func, - GdaExFillListStoreMissingFunc missing_func, gpointer user_data) -{ - GdaDataModel *dm; - - gchar *_sql; - - g_return_if_fail (IS_GDAEX (gdaex)); - g_return_if_fail (sql != NULL); - - _sql = g_strstrip (g_strdup (sql)); - - g_return_if_fail (g_strcmp0 (_sql, "") != 0); - - dm = gdaex_query (gdaex, _sql); - g_free (_sql); - gdaex_fill_liststore_from_datamodel_with_missing_func (gdaex, lstore, dm, cols_formatted, format_func, missing_func, user_data); - g_object_unref (dm); -} - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_datamodel_with_missing_func) -void -gdaex_fill_liststore_from_datamodel_with_missing_func (GdaEx *gdaex, - GtkListStore *lstore, - GdaDataModel *dm, - guint *cols_formatted, - GdaExColsFormatFunc format_func, - GdaExFillListStoreMissingFunc missing_func, gpointer user_data) -{ - gdaex_fill_treemodel_from_datamodel_with_missing_func (gdaex, GTK_TREE_MODEL (lstore), dm, cols_formatted, format_func, missing_func, user_data); -} - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_sql) -void -gdaex_fill_liststore_from_sql (GdaEx *gdaex, - GtkListStore *lstore, - const gchar *sql, - guint *cols_formatted, - GdaExColsFormatFunc format_func) -{ - gdaex_fill_liststore_from_sql_with_missing_func (gdaex, lstore, sql, cols_formatted, format_func, NULL, NULL); -} - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_datamodel) -void -gdaex_fill_liststore_from_datamodel (GdaEx *gdaex, - GtkListStore *lstore, - GdaDataModel *dm, - guint *cols_formatted, - GdaExColsFormatFunc format_func) -{ - gdaex_fill_liststore_from_datamodel_with_missing_func (gdaex, lstore, dm, cols_formatted, format_func, NULL, NULL); -} - GdaSqlBuilder *gdaex_get_gda_sqlbuilder_from_hashtable (GdaEx *gdaex, GdaExSqlType sqltype, diff --git a/src/gdaex.h b/src/gdaex.h index 828a114..c3e880b 100644 --- a/src/gdaex.h +++ b/src/gdaex.h @@ -1,7 +1,7 @@ /* * gdaex.h * - * Copyright (C) 2005-2020 Andrea Zagli + * Copyright (C) 2005-2025 Andrea Zagli * * This file is part of libgdaex. * @@ -282,39 +282,6 @@ void gdaex_fill_treemodel_from_datamodel (GdaEx *gdaex, guint *cols_formatted, GdaExColsFormatFunc format_func); -G_DEPRECATED_FOR (GdaExFillTreeModelMissingFunc) -typedef void (*GdaExFillListStoreMissingFunc) (GtkListStore *lstore, GtkTreeIter *iter, gpointer user_data); - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_sql_with_missing_func) -void gdaex_fill_liststore_from_sql_with_missing_func (GdaEx *gdaex, - GtkListStore *lstore, - const gchar *sql, - guint *cols_formatted, - GdaExColsFormatFunc format_func, - GdaExFillListStoreMissingFunc missing_func, gpointer user_data); - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_datamodel_with_missing_func) -void gdaex_fill_liststore_from_datamodel_with_missing_func (GdaEx *gdaex, - GtkListStore *lstore, - GdaDataModel *dm, - guint *cols_formatted, - GdaExColsFormatFunc format_func, - GdaExFillListStoreMissingFunc missing_func, gpointer user_data); - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_sql) -void gdaex_fill_liststore_from_sql (GdaEx *gdaex, - GtkListStore *lstore, - const gchar *sql, - guint *cols_formatted, - GdaExColsFormatFunc format_func); - -G_DEPRECATED_FOR (gdaex_fill_treemodel_from_datamodel) -void gdaex_fill_liststore_from_datamodel (GdaEx *gdaex, - GtkListStore *lstore, - GdaDataModel *dm, - guint *cols_formatted, - GdaExColsFormatFunc format_func); - typedef enum { GDAEX_SQL_SELECT, -- 2.50.1