--- a/src/ioctl.c
+++ b/src/ioctl.c
@@ -2,7 +2,7 @@
  * ioctl.c: DVD ioctl replacement function
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ioctl.c,v 1.18 2002/11/14 01:32:37 jlj Exp $
+ * $Id: ioctl.c,v 1.19 2002/11/14 12:38:57 gbazin Exp $
  *
  * Authors: Markus Kuespert <ltlBeBoy@beosmail.com>
  *          Samuel Hocevar <sam@zoy.org>
@@ -248,40 +248,6 @@
         {
             *pi_copyright = p_buffer[ 4 ];
         }
-        else
-        {
-            /* We don't have the privileges to send a SCSI_PASS_THROUGH
-               command, let's try to read a title key to check if the DVD is
-               encrypted. */
-
-            int i_agid;
-            u8 buffer[DVD_DISK_KEY_LENGTH];
-            PDVD_COPY_PROTECT_KEY key = (PDVD_COPY_PROTECT_KEY) &buffer;
-
-            if( ioctl_ReportAgid( i_fd, &i_agid ) < 0 )
-                return -1;
-
-            memset( &buffer, 0, sizeof( buffer ) );
-
-            key->KeyLength  = DVD_DISK_KEY_LENGTH;
-            key->SessionId  = i_agid;
-            key->KeyType    = DvdDiskKey;
-            key->KeyFlags   = 0;
-
-            i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_READ_KEY, key, 
-                    key->KeyLength, key, key->KeyLength, &tmp, NULL ) ? 0 : -1;
-            if( i_ret < 0 )
-            {   
-                /* Ok, let's assume the disc is not encrypted */
-                *pi_copyright = 0;
-                i_ret = 0;
-            }
-            else
-            {
-                *pi_copyright = ((key->KeyFlags & DVD_SECTOR_PROTECT_MASK) ==
-                                 DVD_SECTOR_PROTECTED) ? 0 : 1;
-            }
-        }
     }
     else
     {