Mercurial > libdvdread4.hg
changeset 42:3aa39a1cff0f src
Remove empty if clause.
An if clause is empty. This makes the else do all of the work
and still ends up w/ a larger object file because the if clause
is stuck into the object file. By moving to the logical not of
the if we can remove the empty clause.
| author | erik |
|---|---|
| date | Wed, 02 Sep 2009 01:34:23 +0000 |
| parents | ef679522d00f |
| children | 6177a05fa534 |
| files | dvd_reader.c |
| diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dvd_reader.c Tue Aug 04 21:21:49 2009 +0000 +++ b/dvd_reader.c Wed Sep 02 01:34:23 2009 +0000 @@ -882,9 +882,7 @@ int i; if( dvd_file ) { - if( dvd_file->dvd->isImageFile ) { - ; - } else { + if( !dvd_file->dvd->isImageFile ) { for( i = 0; i < TITLES_MAX; ++i ) { if( dvd_file->title_devs[ i ] ) { dvdinput_close( dvd_file->title_devs[i] );
