From eb118d67fcd1eba3c0827fae13efa93ba402497f Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Tue, 13 Aug 2019 18:23:21 +0000 Subject: [PATCH] section: Remove row --- eek/eek-section.c | 39 --------------------------------------- eek/eek-section.h | 17 ----------------- 2 files changed, 56 deletions(-) diff --git a/eek/eek-section.c b/eek/eek-section.c index bb029386..fe430fcf 100644 --- a/eek/eek-section.c +++ b/eek/eek-section.c @@ -80,22 +80,6 @@ eek_section_real_add_row (EekSection *self, priv->rows = g_slist_append (priv->rows, row);*/ } -static void -eek_section_real_get_row (EekSection *self, - gint index, - gint *num_columns, - EekOrientation *orientation) -{ - EekSectionPrivate *priv = (EekSectionPrivate*)eek_section_get_instance_private (self); - EekRow *row = &priv->row; - if (num_columns) { - *num_columns = row->num_columns; - } - if (orientation) { - *orientation = row->orientation; - } -} - static EekKey * eek_section_real_create_key (EekSection *self, const gchar *name, @@ -203,7 +187,6 @@ eek_section_class_init (EekSectionClass *klass) klass->get_n_rows = eek_section_real_get_n_rows; klass->add_row = eek_section_real_add_row; - klass->get_row = eek_section_real_get_row; klass->create_key = eek_section_real_create_key; /* signals */ @@ -305,28 +288,6 @@ eek_section_add_row (EekSection *section, orientation); } -/** - * eek_section_get_row: - * @section: an #EekSection - * @index: the index of row - * @num_columns: pointer where the number of column in the row will be stored - * @orientation: pointer where #EekOrientation of the row will be stored - * - * Get the information about the @index-th row in @section. - */ -void -eek_section_get_row (EekSection *section, - gint index, - gint *num_columns, - EekOrientation *orientation) -{ - g_return_if_fail (EEK_IS_SECTION(section)); - EEK_SECTION_GET_CLASS(section)->get_row (section, - index, - num_columns, - orientation); -} - /** * eek_section_create_key: * @section: an #EekSection diff --git a/eek/eek-section.h b/eek/eek-section.h index 03166e6a..fd6ca543 100644 --- a/eek/eek-section.h +++ b/eek/eek-section.h @@ -58,24 +58,12 @@ struct _EekSectionClass void (* add_row) (EekSection *self, gint num_columns, EekOrientation orientation); - void (* get_row) (EekSection *self, - gint index, - gint *num_columns, - EekOrientation *orientation); EekKey *(* create_key) (EekSection *self, const gchar *name, gint keycode, guint oref); - /* signals */ - void (* key_locked) (EekSection *self, - EekKey *key); - void (* key_unlocked) (EekSection *self, - EekKey *key); - void (* key_cancelled) (EekSection *self, - EekKey *key); - /*< private >*/ /* padding */ gpointer pdummy[19]; @@ -91,11 +79,6 @@ gint eek_section_get_n_rows (EekSection *section); void eek_section_add_row (EekSection *section, gint num_columns, EekOrientation orientation); -void eek_section_get_row (EekSection *section, - gint index, - gint *num_columns, - EekOrientation *orientation); - EekKey *eek_section_create_key (EekSection *section, const gchar *name, guint keycode, guint oref);