[asterisk-commits] qwell: trunk r390042 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 29 14:54:04 CDT 2013


Author: qwell
Date: Wed May 29 14:54:01 2013
New Revision: 390042

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390042
Log:
Remove unused RAII vars.

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=390042&r1=390041&r2=390042
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed May 29 14:54:01 2013
@@ -1366,7 +1366,6 @@
 /*! \brief Queue a hangup frame for channel */
 int ast_queue_hangup(struct ast_channel *chan)
 {
-	RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup);
 	struct ast_frame f = { AST_FRAME_CONTROL, .subclass.integer = AST_CONTROL_HANGUP };
 	int res;
 
@@ -1384,7 +1383,6 @@
 int ast_queue_hangup_with_cause(struct ast_channel *chan, int cause)
 {
 	RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
-	RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup);
 	struct ast_frame f = { AST_FRAME_CONTROL, .subclass.integer = AST_CONTROL_HANGUP };
 	int res;
 
@@ -1410,7 +1408,6 @@
 int ast_queue_hold(struct ast_channel *chan, const char *musicclass)
 {
 	RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
-	RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup);
 	struct ast_frame f = { AST_FRAME_CONTROL, .subclass.integer = AST_CONTROL_HOLD };
 	int res;
 
@@ -1430,7 +1427,6 @@
 
 int ast_queue_unhold(struct ast_channel *chan)
 {
-	RAII_VAR(struct stasis_message *, message, NULL, ao2_cleanup);
 	struct ast_frame f = { AST_FRAME_CONTROL, .subclass.integer = AST_CONTROL_UNHOLD };
 	int res;
 




More information about the asterisk-commits mailing list