diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-08-26 15:14:48 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-08-26 15:14:48 +0000 |
| commit | b63bc73b93255d27e784e5e1dbf99fa4e1dae76b (patch) | |
| tree | 7a9feeddf10c069bf243796896d2898bee632c49 /lasso/xml/ws | |
| parent | 291e0c05fa91b9d8e937895da6b0f1da658cd3fc (diff) | |
| download | lasso-b63bc73b93255d27e784e5e1dbf99fa4e1dae76b.tar.gz lasso-b63bc73b93255d27e784e5e1dbf99fa4e1dae76b.tar.xz lasso-b63bc73b93255d27e784e5e1dbf99fa4e1dae76b.zip | |
XML: remove all useless instance_init functions
* Use Coccinelle semantic patch tool (http://coccinelle.lip6.fr/) to
remove useless instance_init functions, the first patch applied was:
@@
type T,V;
identifier I, J;
parameter list P;
expression E1;
@@
V instance_init(T node)
{
<...
(
- E1 = 0;
|
- E1 = NULL;
|
- E1 = FALSE;
)
...>
}
It removes useless initialization to 0 (GObject already zeroes
allocated objects).
The second one is:
@ rule1 @
type T;
identifier node,fn;
@@
- static void fn(T *node) { }
@ rule2 extends rule1 @
typedef GType, GInstanceInitFunc;
identifier type_constructor;
@@
GType type_constructor()
{
<...
- (GInstanceInitFunc)fn
+ NULL
...>
}
It removes empty instance_init functions.
Diffstat (limited to 'lasso/xml/ws')
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_any.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_qname.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_unsigned_long.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_uri.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_endpoint_reference.c | 4 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_metadata.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_problem_action.c | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_reference_parameters.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_relates_to.c | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsse_embedded.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsse_reference.c | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsse_security_header.c | 1 | ||||
| -rw-r--r-- | lasso/xml/ws/wsse_security_token_reference.c | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsse_username_token.c | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsu_timestamp.c | 3 |
15 files changed, 0 insertions, 25 deletions
diff --git a/lasso/xml/ws/wsa_attributed_any.c b/lasso/xml/ws/wsa_attributed_any.c index 838e3e30..294912c5 100644 --- a/lasso/xml/ws/wsa_attributed_any.c +++ b/lasso/xml/ws/wsa_attributed_any.c @@ -59,7 +59,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrAttributedAny *node) { - node->any = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_attributed_qname.c b/lasso/xml/ws/wsa_attributed_qname.c index 5ff5d82a..3f5b911f 100644 --- a/lasso/xml/ws/wsa_attributed_qname.c +++ b/lasso/xml/ws/wsa_attributed_qname.c @@ -60,7 +60,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrAttributedQName *node) { - node->content = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_attributed_unsigned_long.c b/lasso/xml/ws/wsa_attributed_unsigned_long.c index 7c771526..156a5215 100644 --- a/lasso/xml/ws/wsa_attributed_unsigned_long.c +++ b/lasso/xml/ws/wsa_attributed_unsigned_long.c @@ -60,7 +60,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrAttributedUnsignedLong *node) { - node->content = 0; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_attributed_uri.c b/lasso/xml/ws/wsa_attributed_uri.c index 7ba34bdc..73770fda 100644 --- a/lasso/xml/ws/wsa_attributed_uri.c +++ b/lasso/xml/ws/wsa_attributed_uri.c @@ -60,7 +60,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrAttributedURI *node) { - node->content = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_endpoint_reference.c b/lasso/xml/ws/wsa_endpoint_reference.c index 0605897a..c09e67ac 100644 --- a/lasso/xml/ws/wsa_endpoint_reference.c +++ b/lasso/xml/ws/wsa_endpoint_reference.c @@ -71,10 +71,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrEndpointReference *node) { - node->Address = NULL; - node->ReferenceParameters = NULL; - node->Metadata = NULL; - node->any = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_metadata.c b/lasso/xml/ws/wsa_metadata.c index 7bd00efa..54efb525 100644 --- a/lasso/xml/ws/wsa_metadata.c +++ b/lasso/xml/ws/wsa_metadata.c @@ -59,7 +59,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrMetadata *node) { - node->any = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_problem_action.c b/lasso/xml/ws/wsa_problem_action.c index d6d51171..1957e408 100644 --- a/lasso/xml/ws/wsa_problem_action.c +++ b/lasso/xml/ws/wsa_problem_action.c @@ -63,8 +63,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrProblemAction *node) { - node->Action = NULL; - node->SoapAction = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_reference_parameters.c b/lasso/xml/ws/wsa_reference_parameters.c index de6be1d9..279e0977 100644 --- a/lasso/xml/ws/wsa_reference_parameters.c +++ b/lasso/xml/ws/wsa_reference_parameters.c @@ -59,7 +59,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrReferenceParameters *node) { - node->any = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsa_relates_to.c b/lasso/xml/ws/wsa_relates_to.c index 122f25f6..651a3871 100644 --- a/lasso/xml/ws/wsa_relates_to.c +++ b/lasso/xml/ws/wsa_relates_to.c @@ -64,8 +64,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsAddrRelatesTo *node) { - node->content = NULL; - node->RelationshipType = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsse_embedded.c b/lasso/xml/ws/wsse_embedded.c index 923c36a5..c8efcb58 100644 --- a/lasso/xml/ws/wsse_embedded.c +++ b/lasso/xml/ws/wsse_embedded.c @@ -64,7 +64,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsSec1Embedded *node) { - node->ValueType = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsse_reference.c b/lasso/xml/ws/wsse_reference.c index 7924ddfd..21a0dfdd 100644 --- a/lasso/xml/ws/wsse_reference.c +++ b/lasso/xml/ws/wsse_reference.c @@ -64,8 +64,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsSec1Reference *node) { - node->URI = NULL; - node->ValueType = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsse_security_header.c b/lasso/xml/ws/wsse_security_header.c index 0b575c70..93bb5e08 100644 --- a/lasso/xml/ws/wsse_security_header.c +++ b/lasso/xml/ws/wsse_security_header.c @@ -68,7 +68,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsSec1SecurityHeader *node) { - node->any = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsse_security_token_reference.c b/lasso/xml/ws/wsse_security_token_reference.c index 4776a2dd..51d7201b 100644 --- a/lasso/xml/ws/wsse_security_token_reference.c +++ b/lasso/xml/ws/wsse_security_token_reference.c @@ -66,8 +66,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsSec1SecurityTokenReference *node) { - node->Id = NULL; - node->Usage = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsse_username_token.c b/lasso/xml/ws/wsse_username_token.c index fa3ddc03..966b389a 100644 --- a/lasso/xml/ws/wsse_username_token.c +++ b/lasso/xml/ws/wsse_username_token.c @@ -67,8 +67,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsSec1UsernameToken *node) { - node->Username = NULL; - node->Id = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } diff --git a/lasso/xml/ws/wsu_timestamp.c b/lasso/xml/ws/wsu_timestamp.c index d7de277a..62bdb60f 100644 --- a/lasso/xml/ws/wsu_timestamp.c +++ b/lasso/xml/ws/wsu_timestamp.c @@ -72,9 +72,6 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoWsUtil1Timestamp *node) { - node->Created = NULL; - node->Expires = NULL; - node->Id = NULL; node->attributes = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free); } |
