[nautilus-actions] Remove unused na_data_boxed_set_default() function
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Remove unused na_data_boxed_set_default() function
- Date: Sun, 28 Mar 2010 19:57:14 +0000 (UTC)
commit 81e362fe702a16f286b0eaaf01785f7014427677
Author: Pierre Wieser <pwieser trychlos org>
Date: Sun Mar 28 21:56:38 2010 +0200
Remove unused na_data_boxed_set_default() function
ChangeLog | 3 +++
src/api/na-data-boxed.h | 1 -
src/core/na-data-boxed.c | 26 --------------------------
3 files changed, 3 insertions(+), 27 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 24e8670..cec277f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-03-28 Pierre Wieser <pwieser trychlos org>
+ * src/api/na-data-boxed.h:
+ * src/core/na-data-boxed.c (na_data_boxed_set_default): Removed function.
+
* src/core/na-factory-object.c (set_defaults_iter):
Only set a default value when the box has not been yet allocated.
diff --git a/src/api/na-data-boxed.h b/src/api/na-data-boxed.h
index b7464ed..2400772 100644
--- a/src/api/na-data-boxed.h
+++ b/src/api/na-data-boxed.h
@@ -87,7 +87,6 @@ gchar *na_data_boxed_get_as_string ( const NADataBoxed *boxed );
void *na_data_boxed_get_as_void ( const NADataBoxed *boxed );
void na_data_boxed_get_as_value ( const NADataBoxed *boxed, GValue *value );
-void na_data_boxed_set_default ( NADataBoxed *boxed );
void na_data_boxed_set_from_boxed ( NADataBoxed *boxed, const NADataBoxed *value );
void na_data_boxed_set_from_string( NADataBoxed *boxed, const gchar *value );
void na_data_boxed_set_from_value ( NADataBoxed *boxed, const GValue *value );
diff --git a/src/core/na-data-boxed.c b/src/core/na-data-boxed.c
index 2726325..85f9a54 100644
--- a/src/core/na-data-boxed.c
+++ b/src/core/na-data-boxed.c
@@ -698,32 +698,6 @@ na_data_boxed_get_as_value( const NADataBoxed *boxed, GValue *value )
}
/**
- * na_data_boxed_set_default:
- * @boxed: the #NADataBoxed whose value is to be set.
- *
- * Set the @boxed with its default value.
- */
-void
-na_data_boxed_set_default( NADataBoxed *boxed )
-{
- g_return_if_fail( NA_IS_DATA_BOXED( boxed ));
-
- if( !boxed->private->dispose_has_run ){
-
- DataBoxedFn *fn = get_data_boxed_fn( boxed->private->def->type );
-
- if( fn ){
- if( fn->free ){
- ( *fn->free )( boxed );
- }
- if( fn->set_from_string ){
- ( *fn->set_from_string )( boxed, boxed->private->def->default_value );
- }
- }
- }
-}
-
-/**
* na_data_boxed_set_from_boxed:
* @boxed: the #NADataBoxed whose value is to be set.
* @value: the source #NADataBoxed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]