]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove unused code
authorBrian West <brian@freeswitch.org>
Wed, 6 May 2009 17:34:29 +0000 (17:34 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 6 May 2009 17:34:29 +0000 (17:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13243 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_file.c

index cf9cb3e5a820282fe24af014fe10095d3bfb2c35..fbbbe873d618c9ebb6b18da66c125fa5f3962401 100644 (file)
@@ -122,12 +122,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
                }
        }
 
-       if (0 && fh->pre_buffer_datalen) {
-               //switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Prebuffering %d bytes\n", (int)fh->pre_buffer_datalen);
-               switch_buffer_create_dynamic(&fh->pre_buffer, fh->pre_buffer_datalen * fh->channels, fh->pre_buffer_datalen * fh->channels / 2, 0);
-               fh->pre_buffer_data = switch_core_alloc(fh->memory_pool, fh->pre_buffer_datalen * fh->channels);
-       }
-
        if (fh->channels > 1 && (flags & SWITCH_FILE_FLAG_READ)) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "File has %d channels, muxing to mono will occur.\n", fh->channels);
        }