Changeset ab95c5fa064411a759f64538b721c8443f5b733f

Show
Ignore:
Timestamp:
04/05/08 13:18:44 (5 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209899924 +0300
git-parent:

[b9c8ba9030f32cc95e07ff6ef2f9e19358aa1b72]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1209899894 +0300
Message:

Remove some dead code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stream_output/stream_output.c

    r6da90a1 rab95c5f  
    762762 *  XXX: psz_chain is modified 
    763763 */ 
    764 #define SKIPSPACE( p ) { while( *p && ( *p == ' ' || *p == '\t' ) ) p++; } 
    765 #define SKIPTRAILINGSPACE( p, e ) \ 
    766     { while( e > p && ( *(e-1) == ' ' || *(e-1) == '\t' ) ) e--; } 
    767  
    768 /* go accross " " and { } */ 
    769 static char *_get_chain_end( char *str ) 
    770 { 
    771     char c, *p = str; 
    772  
    773     SKIPSPACE( p ); 
    774  
    775     for( ;; ) 
    776     { 
    777         if( !*p || *p == ',' || *p == '}' ) return p; 
    778  
    779         if( *p != '{' && *p != '"' && *p != '\'' ) 
    780         { 
    781             p++; 
    782             continue; 
    783         } 
    784  
    785         if( *p == '{' ) c = '}'; 
    786         else c = *p; 
    787         p++; 
    788  
    789         for( ;; ) 
    790         { 
    791             if( !*p ) return p; 
    792  
    793             if( *p == c ) return ++p; 
    794             else if( *p == '{' && c == '}' ) p = _get_chain_end( p ); 
    795             else p++; 
    796         } 
    797     } 
    798 } 
    799764 
    800765/*