diff options
| author | Simo Sorce <simo@redhat.com> | 2014-06-09 13:42:19 -0400 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2014-06-09 15:08:35 -0400 |
| commit | bbb6a2b403fd1e961db752afe1072d616d10ba0d (patch) | |
| tree | 7821cf3d6dfc6828e00b76ae847762ef15dcc290 | |
| parent | 04ec284fb14f62f0ac980b8bfa876d4681086cc4 (diff) | |
| download | lasso-bbb6a2b403fd1e961db752afe1072d616d10ba0d.tar.gz lasso-bbb6a2b403fd1e961db752afe1072d616d10ba0d.tar.xz lasso-bbb6a2b403fd1e961db752afe1072d616d10ba0d.zip | |
Trim unused code
Clang complains these values are never used, avoid even assigning them.
License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
| -rw-r--r-- | lasso/id-ff/provider.c | 2 | ||||
| -rw-r--r-- | lasso/saml-2.0/login.c | 2 | ||||
| -rw-r--r-- | lasso/saml-2.0/profile.c | 2 | ||||
| -rw-r--r-- | lasso/xml/xml.c | 3 |
4 files changed, 3 insertions, 6 deletions
diff --git a/lasso/id-ff/provider.c b/lasso/id-ff/provider.c index 9ab90982..397b5e6e 100644 --- a/lasso/id-ff/provider.c +++ b/lasso/id-ff/provider.c @@ -1807,7 +1807,7 @@ lasso_provider_set_server_signing_key(LassoProvider *provider, LassoKey *key) { lasso_error_t rc = 0; - LassoSignatureContext context = LASSO_SIGNATURE_CONTEXT_NONE; + LassoSignatureContext context; lasso_bad_param(PROVIDER, provider); lasso_bad_param(KEY, key); diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index 4d332926..0e514b45 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -731,8 +731,6 @@ lasso_saml20_login_build_assertion(LassoLogin *login, goto_cleanup_if_fail_with_rc(LASSO_IS_SAMLP2_RESPONSE(profile->response), LASSO_PROFILE_ERROR_MISSING_RESPONSE); - response = (LassoSamlp2Response*)profile->response; - assertion = LASSO_SAML2_ASSERTION(lasso_saml2_assertion_new()); assertion->ID = lasso_build_unique_id(32); lasso_assign_string(assertion->Version, "2.0"); diff --git a/lasso/saml-2.0/profile.c b/lasso/saml-2.0/profile.c index cf3f45c2..64854827 100644 --- a/lasso/saml-2.0/profile.c +++ b/lasso/saml-2.0/profile.c @@ -1165,7 +1165,7 @@ lasso_saml20_profile_build_http_redirect(LassoProfile *profile, { char *query = NULL; int rc = 0; - LassoSignatureContext context = LASSO_SIGNATURE_CONTEXT_NONE; + LassoSignatureContext context; goto_cleanup_if_fail_with_rc (url != NULL, LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL); /* if message is signed, remove XML signature, add query signature */ diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 981d6dc4..7ffa2d27 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -792,7 +792,7 @@ xmlNode* lasso_node_get_xmlNode(LassoNode *node, gboolean lasso_dump) { xmlNode *xmlnode = NULL; - LassoSignatureContext context = LASSO_SIGNATURE_CONTEXT_NONE; + LassoSignatureContext context; LassoNodeClassData *node_data; g_return_val_if_fail (LASSO_IS_NODE(node), NULL); @@ -1764,7 +1764,6 @@ lasso_node_impl_init_from_xml(LassoNode *node, xmlNode *xmlnode) BAD_CAST LASSO_LIB_HREF, &what, LASSO_SIGNATURE_TYPE_NONE+1, LASSO_SIGNATURE_TYPE_LAST)) break; - type = what; private_key_password = xmlGetNsProp(xmlnode, LASSO_PRIVATE_KEY_PASSWORD_ATTRIBUTE, BAD_CAST LASSO_LIB_HREF); if (! private_key) |
