[vlc-commits] block_helper: remove dead assignments
Tristan Matthews
git at videolan.org
Sun Mar 22 23:03:11 CET 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sun Mar 22 17:13:45 2015 -0400| [168daa3f0b466f96a9c70e63c3823d9b8d6fd7cb] | committer: Tristan Matthews
block_helper: remove dead assignments
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=168daa3f0b466f96a9c70e63c3823d9b8d6fd7cb
---
include/vlc_block_helper.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/include/vlc_block_helper.h b/include/vlc_block_helper.h
index ef4d752..4414307 100644
--- a/include/vlc_block_helper.h
+++ b/include/vlc_block_helper.h
@@ -227,7 +227,6 @@ static inline int block_WaitBytes( block_bytestream_t *p_bytestream,
/* Check we have that much data */
i_offset = p_bytestream->i_offset;
i_size = i_data;
- i_copy = 0;
for( p_block = p_bytestream->p_block;
p_block != NULL; p_block = p_block->p_next )
{
@@ -286,7 +285,6 @@ static inline int block_PeekBytes( block_bytestream_t *p_bytestream,
/* Check we have that much data */
i_offset = p_bytestream->i_offset;
i_size = i_data;
- i_copy = 0;
for( p_block = p_bytestream->p_block;
p_block != NULL; p_block = p_block->p_next )
{
@@ -306,7 +304,6 @@ static inline int block_PeekBytes( block_bytestream_t *p_bytestream,
/* Copy the data */
i_offset = p_bytestream->i_offset;
i_size = i_data;
- i_copy = 0;
for( p_block = p_bytestream->p_block;
p_block != NULL; p_block = p_block->p_next )
{
@@ -336,7 +333,6 @@ static inline int block_GetBytes( block_bytestream_t *p_bytestream,
/* Check we have that much data */
i_offset = p_bytestream->i_offset;
i_size = i_data;
- i_copy = 0;
for( p_block = p_bytestream->p_block;
p_block != NULL; p_block = p_block->p_next )
{
@@ -389,7 +385,6 @@ static inline int block_PeekOffsetBytes( block_bytestream_t *p_bytestream,
/* Check we have that much data */
i_offset = p_bytestream->i_offset;
i_size = i_data + i_peek_offset;
- i_copy = 0;
for( p_block = p_bytestream->p_block;
p_block != NULL; p_block = p_block->p_next )
{
@@ -424,7 +419,6 @@ static inline int block_PeekOffsetBytes( block_bytestream_t *p_bytestream,
/* Copy the data */
i_offset += i_copy;
i_size = i_data;
- i_copy = 0;
for( ; p_block != NULL; p_block = p_block->p_next )
{
i_copy = __MIN( i_size, p_block->i_buffer - i_offset );
More information about the vlc-commits
mailing list