You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2012/05/11 06:01:18 UTC

[13/32] git commit: Remove debugging cruft

Remove debugging cruft


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/41b68e44
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/41b68e44
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/41b68e44

Branch: refs/heads/jpeach/lua
Commit: 41b68e44b46ad68ca89bd2ca5d13c29f63dd465b
Parents: e4f56f3
Author: James Peach <jp...@apache.org>
Authored: Mon Apr 16 22:15:53 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Thu May 10 20:23:42 2012 -0700

----------------------------------------------------------------------
 plugins/lua/lapi.cc |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/41b68e44/plugins/lua/lapi.cc
----------------------------------------------------------------------
diff --git a/plugins/lua/lapi.cc b/plugins/lua/lapi.cc
index 92ed744..2dcc1b2 100644
--- a/plugins/lua/lapi.cc
+++ b/plugins/lua/lapi.cc
@@ -67,16 +67,11 @@ LuaPopUrl(lua_State * lua, TSMBuffer buffer, TSMLoc url)
   SET_URL_COMPONENT("fragment", TSUrlHttpFragmentSet);
 
   lua_getfield(lua, -1, "port");
-  if (lua_isnil(lua, -1)) {
-    TSDebug("lua", "port is nil?");
-  } else {
-    TSDebug("lua", "port is %d", (int)lua_tointeger(lua, -1));
+  if (!lua_isnil(lua, -1)) {
     TSUrlPortSet(buffer, url, luaL_checkint(lua, -1));
   }
   lua_pop(lua, 1);
 
-  TSDebug("lua", "top of stack is %s", luaL_typename(lua, -1));
-
 #undef SET_URL_COMPONENT
   return true;
 }