From: Sean Bright Date: Fri, 1 Aug 2008 19:29:26 +0000 (+0000) Subject: Remove some code that used to do something but does not anymore, mainly X-Git-Tag: 1.6.2.0-beta1~1527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca38a1a082b71406a93c50826aabf02b297edfee;p=thirdparty%2Fasterisk.git Remove some code that used to do something but does not anymore, mainly to get rid of a shadow warning (but this seemed legitimate enough to fix here instead of in my branch). Thanks to putnopvut for taking a look as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135197 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 46b75bf319..21d1a9ad4a 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2167,12 +2167,8 @@ static int transmit_modify_with_sdp(struct mgcp_subchannel *sub, struct ast_rtp char local[256]; char tmp[80]; int x; - int capability; struct mgcp_endpoint *p = sub->parent; - capability = p->capability; - if (codecs) - capability = codecs; if (ast_strlen_zero(sub->cxident) && rtp) { /* We don't have a CXident yet, store the destination and wait a bit */