axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r517550 - /webservices/axis2/trunk/c/modules/core/context/svc_ctx.c
Date Tue, 13 Mar 2007 06:07:42 GMT
Author: dinesh
Date: Mon Mar 12 23:07:41 2007
New Revision: 517550

URL: http://svn.apache.org/viewvc?view=rev&rev=517550
Log:
removed unnecessary env checks

Modified:
    webservices/axis2/trunk/c/modules/core/context/svc_ctx.c

Modified: webservices/axis2/trunk/c/modules/core/context/svc_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/svc_ctx.c?view=diff&rev=517550&r1=517549&r2=517550
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/svc_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/svc_ctx.c Mon Mar 12 23:07:41 2007
@@ -87,7 +87,6 @@
     const axis2_svc_ctx_t *svc_ctx,
     const axis2_env_t *env)
 {
-    AXIS2_ENV_CHECK(env, NULL);
     return svc_ctx->base;
 }
 
@@ -97,7 +96,6 @@
                 const axis2_svc_ctx_t *svc_ctx,
                 const axis2_env_t *env)
 {
-    AXIS2_ENV_CHECK(env, NULL);
     return svc_ctx->parent;
 }
 
@@ -107,7 +105,6 @@
                 const axis2_env_t *env,
                 axis2_svc_grp_ctx_t *parent)
 {
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     svc_ctx->parent = parent;
     return AXIS2_SUCCESS;
 }
@@ -122,12 +119,9 @@
     if (svc_ctx->base)
     {
          axis2_ctx_free(svc_ctx->base, env);
-        svc_ctx->base = NULL;
     }
 
     AXIS2_FREE(env->allocator, svc_ctx);
-    svc_ctx = NULL;
-
     return AXIS2_SUCCESS;
 }
 
@@ -153,7 +147,6 @@
     const axis2_svc_ctx_t *svc_ctx,
     const axis2_env_t *env)
 {
-    AXIS2_ENV_CHECK(env, NULL);
     return svc_ctx->svc_id;
 }
 
@@ -163,7 +156,6 @@
     const axis2_svc_ctx_t *svc_ctx,
     const axis2_env_t *env)
 {
-    AXIS2_ENV_CHECK(env, NULL);
     return svc_ctx->svc;
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message