commit 26bfc45f963ee2f76517b72f3bfbbbcf80d36ab9
Author: Mike Gorse <mgorse@suse.com>
Date:   Mon Oct 3 13:20:47 2022 -0500

    tests: Remove streamable content from dummy atk implementation
    
    AT-SPI has no corresponding implementation, so the code was unused and
    was likely nonfunctional, since it called a function that appears not to have
    been defined anywhere.
    
    Helps #10

diff --git a/tests/dummyatk/Makefile.am b/tests/dummyatk/Makefile.am
index 786d1c8..05f0c3c 100644
--- a/tests/dummyatk/Makefile.am
+++ b/tests/dummyatk/Makefile.am
@@ -23,8 +23,6 @@ libdummyatk_la_SOURCES = my-atk-action.c		\
 			 my-atk-object.h		\
 			 my-atk-selection.c		\
 			 my-atk-selection.h		\
-			 my-atk-streamable-content.c	\
-			 my-atk-streamable-content.h	\
 			 my-atk-table.c			\
 			 my-atk-table.h			\
 			 my-atk-text.c			\
diff --git a/tests/dummyatk/my-atk-streamable-content.c b/tests/dummyatk/my-atk-streamable-content.c
deleted file mode 100644
index 04fd28e..0000000
--- a/tests/dummyatk/my-atk-streamable-content.c
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Copyright 2008 Codethink Ltd.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <atk/atk.h>
-
-#include "my-atk-object.h"
-#include "my-atk-streamable-content.h"
-
-//*************************implementation***********************
-//implementation of virtual functions
-//*****************get_n_mime_types************
-static gint my_atk_streamable_content_get_n_mime_types(
-    AtkStreamableContent *streamable)
-{
-    g_return_val_if_fail(MY_IS_ATK_STREAMABLE_CONTENT(streamable), 0);
-    
-    return sizeof(mime_types) / sizeof(mime_types[0]);
-}
-//*****************get_mime_type****************
-static const gchar* my_atk_streamable_content_get_mime_type(
-    AtkStreamableContent *streamable,
-    gint i)
-{
-    g_return_val_if_fail(MY_IS_ATK_STREAMABLE_CONTENT(streamable), NULL);
-    
-    if((i < 0) || (i >= sizeof(mime_types) / sizeof(mime_types[0])))
-    {
-        return NULL;
-    }
-    return mime_types[i];
-}
-//**********************get_stream*******************
-static GIOChannel* my_atk_streamable_content_get_stream(
-    AtkStreamableContent *streamable,
-    const gchar* mime_type)
-{
-    gint i;
-    g_return_val_if_fail(MY_IS_ATK_STREAMABLE_CONTENT(streamable), NULL);
-    
-    for(i = 0; i < sizeof(mime_types) / sizeof(mime_types[0]); i++)
-    {
-        if(strcmp(mime_type, mime_types[i]) == 0)
-        {
-            GError *error = NULL;
-            gchar* full_filename = T2C_GET_DATA_PATH(file_names[i]);
-            GIOChannel* channel = g_io_channel_new_file(full_filename, "r", &error);
-            if(error != NULL)
-            {
-                TRACE("Cannot open file '%s' for read: %s", full_filename,
-                    error->message);
-                g_error_free(error);
-            }
-            g_free(full_filename);
-            return channel;
-        }
-    }
-    return NULL;
-}
-//others functions
-static void my_atk_streamable_content_interface_init(gpointer g_iface, gpointer iface_data)
-{
-    AtkStreamableContentIface *klass = (AtkStreamableContentIface*)g_iface;
-    
-    klass->get_n_mime_types = my_atk_streamable_content_get_n_mime_types;
-    klass->get_mime_type = my_atk_streamable_content_get_mime_type;
-    klass->get_stream = my_atk_streamable_content_get_stream;
-}
-
-GType my_atk_streamable_content_get_type()
-{
-    static GType type = 0;
-    if(type == 0)
-    {
-        static const GTypeInfo typeInfo = 
-        {
-            sizeof(MyAtkStreamableContentClass),
-            NULL, //base_init
-            NULL, //base_finalize
-            NULL, //class_init
-            NULL, //class_finalize
-            NULL, //class_data
-            sizeof(MyAtkStreamableContent),
-            0, //n_preallocs
-            NULL //instance_init
-        };
-
-        static const GInterfaceInfo iface_info = 
-        {
-            my_atk_streamable_content_interface_init,    /* interface_init*/
-            NULL,                               /* interface_finalize*/
-            NULL                                /* interface_data */
-        };
-        type = g_type_register_static(MY_TYPE_ATK_OBJECT, "MyAtkStreamableContent", &typeInfo, 0);
-        g_type_add_interface_static(type,
-            ATK_TYPE_STREAMABLE_CONTENT,
-            &iface_info);
-    }
-    return type;    
-}
diff --git a/tests/dummyatk/my-atk-streamable-content.h b/tests/dummyatk/my-atk-streamable-content.h
deleted file mode 100644
index 1b49d28..0000000
--- a/tests/dummyatk/my-atk-streamable-content.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2008 Codethink Ltd.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef MY_ATK_STREAMABLE_CONTENT_H
-#define MY_ATK_STREAMABLE_CONTENT_H
-
-/*
- * MyAtkStreamableContent: derives GObject and implements AtkStreamableContent
- */
-
-#include <atk/atk.h>
-
-#include "my-atk-object.h"
-
-#define MY_TYPE_ATK_STREAMABLE_CONTENT             (my_atk_streamable_content_get_type ())
-#define MY_ATK_STREAMABLE_CONTENT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), MY_TYPE_ATK_STREAMABLE_CONTENT, MyAtkStreamableContent))
-#define MY_ATK_STREAMABLE_CONTENT_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), MY_TYPE_ATK_STREAMABLE_CONTENT, MyAtkStreamableContentClass))
-#define MY_IS_ATK_STREAMABLE_CONTENT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MY_TYPE_ATK_STREAMABLE_CONTENT))
-#define MY_IS_ATK_STREAMABLE_CONTENT_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), MY_TYPE_ATK_STREAMABLE_CONTENT))
-#define MY_ATK_STREAMABLE_CONTENT_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), MY_TYPE_ATK_STREAMABLE_CONTENT, MyAtkStreamableContentClass))
-
-typedef struct _MyAtkStreamableContent MyAtkStreamableContent;
-typedef struct _MyAtkStreamableContentClass MyAtkStreamableContentClass;
-
-static const gchar* mime_types[]={"text/plain", "text/richtext"};
-static const gchar* file_names[]={"file1", "file2"};
-struct _MyAtkStreamableContent
-{
-    MyAtkObject parent;
-};
-
-struct _MyAtkStreamableContentClass
-{
-    MyAtkObjectClass parent;
-};
-
-GType my_atk_streamable_content_get_type();
-#endif /*MY_ATK_STREAMABLE_CONTENT_H*/
diff --git a/tests/dummyatk/my-atk.h b/tests/dummyatk/my-atk.h
index e5e6146..a9328ee 100644
--- a/tests/dummyatk/my-atk.h
+++ b/tests/dummyatk/my-atk.h
@@ -27,7 +27,6 @@
 #include <my-atk-hyperlink.h>
 #include <my-atk-hypertext.h>
 #include <my-atk-object.h>
-#include <my-atk-streamable-content.h>
 #include <my-atk-text.h>
 #include <my-atk-value.h>
 
