[libbluray-devel] Remove unused code

npzacs git at videolan.org
Wed Feb 24 11:50:03 CET 2016


libbluray | branch: master | npzacs <npzacs at gmail.com> | Tue Feb 23 19:59:49 2016 +0200| [75ea2aadc6d85cee5cea2f83c3c123c12ad753c5] | committer: npzacs

Remove unused code

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=75ea2aadc6d85cee5cea2f83c3c123c12ad753c5
---

 src/libbluray/disc/dec.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/libbluray/disc/dec.c b/src/libbluray/disc/dec.c
index 1c8a601..a910c33 100644
--- a/src/libbluray/disc/dec.c
+++ b/src/libbluray/disc/dec.c
@@ -179,10 +179,6 @@ static int _libaacs_init(BD_DEC *dec, struct dec_dev *dev,
     int result;
     const uint8_t *disc_id;
 
-    memset(i, 0, sizeof(*i));
-
-    libaacs_unload(&dec->aacs);
-
     i->aacs_detected = libaacs_required((void*)dev, _bdrom_have_file);
     if (!i->aacs_detected) {
         /* no AACS */
@@ -220,8 +216,6 @@ static int _libbdplus_init(BD_DEC *dec, struct dec_dev *dev,
                            BD_ENC_INFO *i,
                            void *regs, void *psr_read, void *psr_write)
 {
-    libbdplus_unload(&dec->bdplus);
-
     i->bdplus_detected = libbdplus_required((void*)dev, _bdrom_have_file);
     if (!i->bdplus_detected) {
         return 0;



More information about the libbluray-devel mailing list