From 5c52bb7e57aa3885c7af902a07cd55de69782ef2 Mon Sep 17 00:00:00 2001
From: Bob Ham <bob.ham@puri.sm>
Date: Wed, 10 Oct 2018 13:21:32 +0000
Subject: [PATCH] src: Remove errant calls-ofono-object files

Not even sure how these crept into the repository.
---
 src/calls-ofono-object.c | 157 ---------------------------------------
 src/calls-ofono-object.h |  59 ---------------
 2 files changed, 216 deletions(-)
 delete mode 100644 src/calls-ofono-object.c
 delete mode 100644 src/calls-ofono-object.h

diff --git a/src/calls-ofono-object.c b/src/calls-ofono-object.c
deleted file mode 100644
index 3476f3e..0000000
--- a/src/calls-ofono-object.c
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * Copyright (C) 2018 Purism SPC
- *
- * This file is part of Calls.
- *
- * Calls is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Calls 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
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Calls.  If not, see <http://www.gnu.org/licenses/>.
- *
- * Author: Bob Ham <bob.ham@puri.sm>
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-#include "calls-call-holder.h"
-#include "util.h"
-
-#include <glib/gi18n.h>
-#include <glib-object.h>
-
-/**
- * SECTION:calls-ofono-object
- * @short_description: Object to encapsulate common 
- * @Title: CallsOfonoObject
- */
-
-struct _CallsOfonoObject
-{
-  GObject parent_instance;
-
-};
-
-G_DEFINE_TYPE (CallsOfonoObject, calls_ofono_object, G_TYPE_OBJECT);
-
-enum {
-  PROP_0,
-  PROP_CALL,
-  PROP_LAST_PROP,
-};
-static GParamSpec *props[PROP_LAST_PROP];
-
-
-CallsOfonoObject *
-calls_ofono_object_new (CallsCall *call)
-{
-  return g_object_new (CALLS_TYPE_OFONO_OBJECT,
-                       "call", call,
-                       NULL);
-}
-
-
-CallsCallData *
-calls_ofono_object_get_data (CallsOfonoObject *holder)
-{
-  g_return_val_if_fail (CALLS_IS_OFONO_OBJECT (holder), NULL);
-  return holder->data;
-}
-
-
-CallsCallDisplay *
-calls_ofono_object_get_display (CallsOfonoObject *holder)
-{
-  g_return_val_if_fail (CALLS_IS_OFONO_OBJECT (holder), NULL);
-  return holder->display;
-}
-
-
-CallsCallSelectorItem *
-calls_ofono_object_get_selector_item (CallsOfonoObject *holder)
-{
-  g_return_val_if_fail (CALLS_IS_OFONO_OBJECT (holder), NULL);
-  return holder->selector_item;
-}
-
-
-static void
-set_call (CallsOfonoObject *self, CallsCall *call)
-{
-  CallsParty *party
-    = calls_party_new (NULL, calls_call_get_identifier (call));
-
-  self->data = calls_call_data_new (call, party);
-  g_object_unref (party);
-
-  self->display = calls_call_display_new (self->data);
-  self->selector_item =
-    calls_call_selector_item_new (self);
-}
-
-
-static void
-set_property (GObject      *object,
-              guint         property_id,
-              const GValue *value,
-              GParamSpec   *pspec)
-{
-  CallsOfonoObject *self = CALLS_OFONO_OBJECT (object);
-
-  switch (property_id) {
-  case PROP_CALL:
-    set_call (self, CALLS_CALL (g_value_get_object (value)));
-    break;
-
-  default:
-    G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-    break;
-  }
-}
-
-
-static void
-calls_ofono_object_init (CallsOfonoObject *self)
-{
-}
-
-
-static void
-dispose (GObject *object)
-{
-  GObjectClass *parent_class = g_type_class_peek (G_TYPE_OBJECT);
-  CallsOfonoObject *self = CALLS_OFONO_OBJECT (object);
-
-  g_clear_object (&self->selector_item);
-  g_clear_object (&self->display);
-  g_clear_object (&self->data);
-  
-  parent_class->dispose (object);
-}
-
-
-static void
-calls_ofono_object_class_init (CallsOfonoObjectClass *klass)
-{
-  GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
-  object_class->set_property = set_property;
-  object_class->dispose = dispose;
-
-  props[PROP_CALL] =
-    g_param_spec_object ("call",
-                         _("Call"),
-                         _("The call to hold"),
-                         CALLS_TYPE_CALL,
-                         G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY);
-
-  g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
-}
diff --git a/src/calls-ofono-object.h b/src/calls-ofono-object.h
deleted file mode 100644
index 2a8090a..0000000
--- a/src/calls-ofono-object.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2018 Purism SPC
- *
- * This file is part of Calls.
- *
- * Calls is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Calls 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
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Calls.  If not, see <http://www.gnu.org/licenses/>.
- *
- * Author: Bob Ham <bob.ham@puri.sm>
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-#ifndef CALLS_OFONO_OBJECT_H__
-#define CALLS_OFONO_OBJECT_H__
-
-#include <gio/gio.h>
-
-G_BEGIN_DECLS
-
-#define CALLS_TYPE_OFONO_OBJECT (calls_ofono_object_get_type ())
-
-G_DECLARE_DERIVABLE_TYPE (CallsOfonoObject, calls_ofono_object, CALLS, OFONO_OBJECT, GDBusProxy);
-
-
-typedef void (*CallsOfonoSignalCallback) (CallsOfonoObject *object,
-                                          gchar            *signal_name,
-                                          GVariant         *parameters,
-                                          gpointer          user_data);
-
-/**
- * CallsOfonoObjectClass:
- * @parent_class: The parent class
- * @get_callbacks: An abstract function which must return a 
- * 
- */
-struct _CallsOfonoObjectClass
-{
-  GDBusProxyClass parent_class;
-
-  GHashTable *(*get_callbacks) (CallsOfonoObject *self);
-};
-
-CallsOfonoObject *calls_ofono_object_new ();
-
-G_END_DECLS
-
-#endif /* CALLS_OFONO_OBJECT_H__ */