[svn-commits] mmichelson: branch group/CCSS r224569 - /team/group/CCSS/main/ccss.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Oct 19 14:51:06 CDT 2009


Author: mmichelson
Date: Mon Oct 19 14:51:03 2009
New Revision: 224569

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=224569
Log:
Remove some useless operations.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=224569&r1=224568&r2=224569
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Oct 19 14:51:03 2009
@@ -1990,14 +1990,8 @@
 
 int ast_cc_offer(struct ast_channel *caller_chan)
 {
-	char *caller = ast_strdupa(caller_chan->name);
-	char *dash = strrchr(caller, '-');
 	int core_id;
 	int res = -1;
-
-	if (dash) {
-		*dash = '\0';
-	}
 
 	if ((core_id = ast_cc_get_current_core_id(caller_chan)) < 0) {
 		ast_log(LOG_WARNING, "This should not be possible. No core instance found, so can't offer CC to caller\n");




More information about the svn-commits mailing list