]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1023936 Unused pointer value
authorMichael Jerris <mike@jerris.com>
Thu, 15 May 2014 17:00:32 +0000 (17:00 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 15 May 2014 17:00:32 +0000 (17:00 +0000)
src/switch_cpp.cpp

index f0bb64f53be77a5ccf925cde37544ab85dbe862b..3c735364547f20bc1a65a2e7948d724dec0c8017 100644 (file)
@@ -1164,7 +1164,6 @@ SWITCH_DECLARE(int) CoreSession::recordFile(char *file_name, int time_limit, int
 SWITCH_DECLARE(int) CoreSession::flushEvents() 
 {
        switch_event_t *event;
-       switch_channel_t *channel;
 
        this_check(-1);
        sanity_check(-1);
@@ -1172,7 +1171,6 @@ SWITCH_DECLARE(int) CoreSession::flushEvents()
        if (!session) {
                return SWITCH_STATUS_FALSE;
        }
-       channel = switch_core_session_get_channel(session);
 
        while (switch_core_session_dequeue_event(session, &event, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
                switch_event_destroy(&event);