[java-atk-wrapper] JNI/Wrapper: remove jaw_table_get_index_at



commit 626b62df940564d6ad3845b3c90abb4afe91e117
Author: Magdalen Berns <m berns thismagpie com>
Date:   Wed Jul 15 23:56:07 2015 +0100

    JNI/Wrapper: remove jaw_table_get_index_at
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=752334

 jni/src/jawtable.c                            |   17 -----------------
 wrapper/org/GNOME/Accessibility/AtkTable.java |   10 ----------
 2 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/jni/src/jawtable.c b/jni/src/jawtable.c
index 93b40d9..2f17f0a 100644
--- a/jni/src/jawtable.c
+++ b/jni/src/jawtable.c
@@ -28,7 +28,6 @@ extern gpointer jaw_table_data_init (jobject ac);
 extern void jaw_table_data_finalize (gpointer);
 
 static AtkObject*   jaw_table_ref_at(AtkTable *table, gint row, gint column);
-static gint         jaw_table_get_index_at(AtkTable *table, gint row, gint column);
 static gint         jaw_table_get_column_at_index(AtkTable *table, gint index);
 static gint         jaw_table_get_row_at_index(AtkTable *table, gint index);
 static gint         jaw_table_get_n_columns(AtkTable *table);
@@ -69,7 +68,6 @@ void
 jaw_table_interface_init (AtkTableIface *iface)
 {
   iface->ref_at = jaw_table_ref_at;
-  iface->get_index_at = jaw_table_get_index_at;
   iface->get_column_at_index = jaw_table_get_column_at_index;
   iface->get_row_at_index = jaw_table_get_row_at_index;
   iface->get_n_columns = jaw_table_get_n_columns;
@@ -163,21 +161,6 @@ jaw_table_ref_at (AtkTable *table, gint    row, gint column)
 }
 
 static gint
-jaw_table_get_index_at (AtkTable *table, gint row, gint column)
-{
-  JawObject *jaw_obj = JAW_OBJECT(table);
-  TableData *data = jaw_object_get_interface_data(jaw_obj, INTERFACE_TABLE);
-  jobject atk_table = data->atk_table;
-
-  JNIEnv *env = jaw_util_get_jni_env();
-  jclass classAtkTable = (*env)->FindClass(env, "org/GNOME/Accessibility/AtkTable");
-  jmethodID jmid = (*env)->GetMethodID(env, classAtkTable, "get_index_at", "(II)I");
-  jint index = (*env)->CallIntMethod(env, atk_table, jmid, (jint)row, (jint)column);
-
-  return (gint)index;
-}
-
-static gint
 jaw_table_get_column_at_index (AtkTable *table, gint index)
 {
   JawObject *jaw_obj = JAW_OBJECT(table);
diff --git a/wrapper/org/GNOME/Accessibility/AtkTable.java b/wrapper/org/GNOME/Accessibility/AtkTable.java
index f5a6a24..a2aaca1 100644
--- a/wrapper/org/GNOME/Accessibility/AtkTable.java
+++ b/wrapper/org/GNOME/Accessibility/AtkTable.java
@@ -41,16 +41,6 @@ public class AtkTable {
                return null;
        }
 
-       public int get_index_at (int row, int column) {
-               int index = -1;
-
-               if (acc_table instanceof AccessibleExtendedTable) {
-                       index = ((AccessibleExtendedTable)acc_table).getAccessibleIndex(row, column);
-               }
-
-               return index;
-       }
-
        public int get_column_at_index (int index) {
                int column = -1;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]