aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-10-25 13:36:32 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-10-28 10:28:31 +0100
commit651028c2b7b205f713e49df373d4bd016364c547 (patch)
treee80fb0cba97c80255ce65473e7b5b6ee1e4621be
parent856619535d2af66a2793bdf4bedaaa3fc7810a73 (diff)
libmm-glib: remove unused _dup() methods
-rw-r--r--libmm-glib/mm-bearer-ip-config.c19
-rw-r--r--libmm-glib/mm-bearer-ip-config.h2
-rw-r--r--libmm-glib/mm-bearer-properties.c19
-rw-r--r--libmm-glib/mm-bearer-properties.h2
-rw-r--r--libmm-glib/mm-call-audio-format.c19
-rw-r--r--libmm-glib/mm-call-audio-format.h2
-rw-r--r--libmm-glib/mm-call-properties.c19
-rw-r--r--libmm-glib/mm-call-properties.h9
-rw-r--r--libmm-glib/mm-kernel-event-properties.c19
-rw-r--r--libmm-glib/mm-kernel-event-properties.h2
-rw-r--r--libmm-glib/mm-sms-properties.c19
-rw-r--r--libmm-glib/mm-sms-properties.h2
12 files changed, 3 insertions, 130 deletions
diff --git a/libmm-glib/mm-bearer-ip-config.c b/libmm-glib/mm-bearer-ip-config.c
index 290d516a..73242b24 100644
--- a/libmm-glib/mm-bearer-ip-config.c
+++ b/libmm-glib/mm-bearer-ip-config.c
@@ -383,25 +383,6 @@ mm_bearer_ip_config_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
MMBearerIpConfig *
-mm_bearer_ip_config_dup (MMBearerIpConfig *orig)
-{
- GVariant *dict;
- MMBearerIpConfig *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_BEARER_IP_CONFIG (orig), NULL);
-
- dict = mm_bearer_ip_config_get_dictionary (orig);
- copy = mm_bearer_ip_config_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
-MMBearerIpConfig *
mm_bearer_ip_config_new (void)
{
return (MM_BEARER_IP_CONFIG (
diff --git a/libmm-glib/mm-bearer-ip-config.h b/libmm-glib/mm-bearer-ip-config.h
index 551ff705..861b9f7b 100644
--- a/libmm-glib/mm-bearer-ip-config.h
+++ b/libmm-glib/mm-bearer-ip-config.h
@@ -77,8 +77,6 @@ MMBearerIpConfig *mm_bearer_ip_config_new (void);
MMBearerIpConfig *mm_bearer_ip_config_new_from_dictionary (GVariant *dictionary,
GError **error);
-MMBearerIpConfig *mm_bearer_ip_config_dup (MMBearerIpConfig *orig);
-
void mm_bearer_ip_config_set_method (MMBearerIpConfig *self,
MMBearerIpMethod ip_method);
void mm_bearer_ip_config_set_address (MMBearerIpConfig *self,
diff --git a/libmm-glib/mm-bearer-properties.c b/libmm-glib/mm-bearer-properties.c
index 5c2b8ae6..22c31948 100644
--- a/libmm-glib/mm-bearer-properties.c
+++ b/libmm-glib/mm-bearer-properties.c
@@ -652,25 +652,6 @@ mm_bearer_properties_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
-MMBearerProperties *
-mm_bearer_properties_dup (MMBearerProperties *orig)
-{
- GVariant *dict;
- MMBearerProperties *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_BEARER_PROPERTIES (orig), NULL);
-
- dict = mm_bearer_properties_get_dictionary (orig);
- copy = mm_bearer_properties_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
gboolean
mm_bearer_properties_cmp (MMBearerProperties *a,
MMBearerProperties *b)
diff --git a/libmm-glib/mm-bearer-properties.h b/libmm-glib/mm-bearer-properties.h
index 6a302cf5..8d8f0006 100644
--- a/libmm-glib/mm-bearer-properties.h
+++ b/libmm-glib/mm-bearer-properties.h
@@ -104,8 +104,6 @@ MMBearerProperties *mm_bearer_properties_new_from_string (const gchar *str,
MMBearerProperties *mm_bearer_properties_new_from_dictionary (GVariant *dictionary,
GError **error);
-MMBearerProperties *mm_bearer_properties_dup (MMBearerProperties *orig);
-
gboolean mm_bearer_properties_consume_string (MMBearerProperties *self,
const gchar *key,
const gchar *value,
diff --git a/libmm-glib/mm-call-audio-format.c b/libmm-glib/mm-call-audio-format.c
index 3bc8be9e..221cf85a 100644
--- a/libmm-glib/mm-call-audio-format.c
+++ b/libmm-glib/mm-call-audio-format.c
@@ -221,25 +221,6 @@ mm_call_audio_format_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
MMCallAudioFormat *
-mm_call_audio_format_dup (MMCallAudioFormat *orig)
-{
- GVariant *dict;
- MMCallAudioFormat *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_CALL_AUDIO_FORMAT (orig), NULL);
-
- dict = mm_call_audio_format_get_dictionary (orig);
- copy = mm_call_audio_format_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
-MMCallAudioFormat *
mm_call_audio_format_new (void)
{
return (MM_CALL_AUDIO_FORMAT (
diff --git a/libmm-glib/mm-call-audio-format.h b/libmm-glib/mm-call-audio-format.h
index bd931bc8..05378840 100644
--- a/libmm-glib/mm-call-audio-format.h
+++ b/libmm-glib/mm-call-audio-format.h
@@ -74,8 +74,6 @@ MMCallAudioFormat *mm_call_audio_format_new (void);
MMCallAudioFormat *mm_call_audio_format_new_from_dictionary (GVariant *dictionary,
GError **error);
-MMCallAudioFormat *mm_call_audio_format_dup (MMCallAudioFormat *orig);
-
void mm_call_audio_format_set_encoding (MMCallAudioFormat *self,
const gchar *encoding);
void mm_call_audio_format_set_resolution (MMCallAudioFormat *self,
diff --git a/libmm-glib/mm-call-properties.c b/libmm-glib/mm-call-properties.c
index dba4ef16..6a343fc2 100644
--- a/libmm-glib/mm-call-properties.c
+++ b/libmm-glib/mm-call-properties.c
@@ -366,25 +366,6 @@ mm_call_properties_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
-MMCallProperties *
-mm_call_properties_dup (MMCallProperties *orig)
-{
- GVariant *dict;
- MMCallProperties *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_CALL_PROPERTIES (orig), NULL);
-
- dict = mm_call_properties_get_dictionary (orig);
- copy = mm_call_properties_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
/**
* mm_call_properties_new:
*
diff --git a/libmm-glib/mm-call-properties.h b/libmm-glib/mm-call-properties.h
index 08ffb0c3..e0b821b5 100644
--- a/libmm-glib/mm-call-properties.h
+++ b/libmm-glib/mm-call-properties.h
@@ -89,14 +89,11 @@ MMCallState mm_call_properties_get_state (MMCallProperties *self);
defined (_LIBMM_INSIDE_MMCLI) || \
defined (LIBMM_GLIB_COMPILATION)
-MMCallProperties *mm_call_properties_new_from_string (const gchar *str,
- GError **error);
+MMCallProperties *mm_call_properties_new_from_string (const gchar *str,
+ GError **error);
MMCallProperties *mm_call_properties_new_from_dictionary (GVariant *dictionary,
GError **error);
-
-MMCallProperties *mm_call_properties_dup (MMCallProperties *orig);
-
-GVariant *mm_call_properties_get_dictionary (MMCallProperties *self);
+GVariant *mm_call_properties_get_dictionary (MMCallProperties *self);
#endif
diff --git a/libmm-glib/mm-kernel-event-properties.c b/libmm-glib/mm-kernel-event-properties.c
index 8ab14ef2..b7853ffd 100644
--- a/libmm-glib/mm-kernel-event-properties.c
+++ b/libmm-glib/mm-kernel-event-properties.c
@@ -402,25 +402,6 @@ mm_kernel_event_properties_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
-MMKernelEventProperties *
-mm_kernel_event_properties_dup (MMKernelEventProperties *orig)
-{
- GVariant *dict;
- MMKernelEventProperties *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_KERNEL_EVENT_PROPERTIES (orig), NULL);
-
- dict = mm_kernel_event_properties_get_dictionary (orig);
- copy = mm_kernel_event_properties_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
/**
* mm_kernel_event_properties_new:
*
diff --git a/libmm-glib/mm-kernel-event-properties.h b/libmm-glib/mm-kernel-event-properties.h
index 5f33ae80..903fc6bc 100644
--- a/libmm-glib/mm-kernel-event-properties.h
+++ b/libmm-glib/mm-kernel-event-properties.h
@@ -90,8 +90,6 @@ MMKernelEventProperties *mm_kernel_event_properties_new_from_string (const g
MMKernelEventProperties *mm_kernel_event_properties_new_from_dictionary (GVariant *dictionary,
GError **error);
-MMKernelEventProperties *mm_kernel_event_properties_dup (MMKernelEventProperties *orig);
-
GVariant *mm_kernel_event_properties_get_dictionary (MMKernelEventProperties *self);
#endif
diff --git a/libmm-glib/mm-sms-properties.c b/libmm-glib/mm-sms-properties.c
index 36783238..0f9dc52b 100644
--- a/libmm-glib/mm-sms-properties.c
+++ b/libmm-glib/mm-sms-properties.c
@@ -876,25 +876,6 @@ mm_sms_properties_new_from_dictionary (GVariant *dictionary,
/*****************************************************************************/
-MMSmsProperties *
-mm_sms_properties_dup (MMSmsProperties *orig)
-{
- GVariant *dict;
- MMSmsProperties *copy;
- GError *error = NULL;
-
- g_return_val_if_fail (MM_IS_SMS_PROPERTIES (orig), NULL);
-
- dict = mm_sms_properties_get_dictionary (orig);
- copy = mm_sms_properties_new_from_dictionary (dict, &error);
- g_assert_no_error (error);
- g_variant_unref (dict);
-
- return copy;
-}
-
-/*****************************************************************************/
-
/**
* mm_sms_properties_new:
*
diff --git a/libmm-glib/mm-sms-properties.h b/libmm-glib/mm-sms-properties.h
index f5864ee1..0def66ed 100644
--- a/libmm-glib/mm-sms-properties.h
+++ b/libmm-glib/mm-sms-properties.h
@@ -109,8 +109,6 @@ MMSmsProperties *mm_sms_properties_new_from_string (const gchar *str,
MMSmsProperties *mm_sms_properties_new_from_dictionary (GVariant *dictionary,
GError **error);
-MMSmsProperties *mm_sms_properties_dup (MMSmsProperties *orig);
-
GVariant *mm_sms_properties_get_dictionary (MMSmsProperties *self);
#endif