diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-04-15 18:01:47 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-04-15 18:01:47 +0000 |
commit | 45ade68cb48baad5f4f994fae6fe52211f379f70 (patch) | |
tree | 618aa6b37ae7714daa6090c4e7f2a9bc8ded1c0d /res/ari | |
parent | d28af99e65c79f5bb1d336218f37de32313181db (diff) |
Remove unused RAII_VAR() declarations.
* Remove unused RAII_VAR() declarations. The compiler cannot catch these
because the cleanup function "references" the unused variable. Some
actually allocated and released resources that were never used.
* Fixed some whitespace issues in stasis_bridges.c.
........
Merged revisions 412399 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari')
-rw-r--r-- | res/ari/resource_channels.c | 1 | ||||
-rw-r--r-- | res/ari/resource_recordings.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c index 7b7e80739..9d127b2ea 100644 --- a/res/ari/resource_channels.c +++ b/res/ari/resource_channels.c @@ -464,7 +464,6 @@ void ast_ari_channels_record(struct ast_variable *headers, struct ast_ari_response *response) { RAII_VAR(struct stasis_app_control *, control, NULL, ao2_cleanup); - RAII_VAR(struct ast_channel_snapshot *, snapshot, NULL, ao2_cleanup); RAII_VAR(struct stasis_app_recording *, recording, NULL, ao2_cleanup); RAII_VAR(char *, recording_url, NULL, ast_free); struct ast_json *json; diff --git a/res/ari/resource_recordings.c b/res/ari/resource_recordings.c index abde4f0c0..bc07d5599 100644 --- a/res/ari/resource_recordings.c +++ b/res/ari/resource_recordings.c @@ -166,7 +166,6 @@ static void control_recording(const char *name, struct ast_ari_response *response) { RAII_VAR(struct stasis_app_recording *, recording, NULL, ao2_cleanup); - RAII_VAR(struct ast_json *, json, NULL, ast_json_unref); enum stasis_app_recording_oper_results res; recording = stasis_app_recording_find_by_name(name); |