libmm-glib: remove unused _dup() methods

This commit is contained in:
Aleksander Morgado
2019-10-28 10:28:31 +01:00
parent 856619535d
commit 651028c2b7
12 changed files with 3 additions and 130 deletions
-19
View File
@@ -382,25 +382,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)
{
-2
View File
@@ -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,
-19
View File
@@ -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)
-2
View File
@@ -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,
-19
View File
@@ -220,25 +220,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)
{
-2
View File
@@ -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,
-19
View File
@@ -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:
*
+3 -6
View File
@@ -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
-19
View File
@@ -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:
*
-2
View File
@@ -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
-19
View File
@@ -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:
*
-2
View File
@@ -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