[SAMSRV]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 23 Jun 2013 15:02:31 +0000 (15:02 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 23 Jun 2013 15:02:31 +0000 (15:02 +0000)
Remove unused code.

svn path=/trunk/; revision=59320

reactos/dll/win32/samsrv/database.c

index 735af60..35bc9bf 100644 (file)
@@ -356,7 +356,6 @@ SampValidateDbObject(SAMPR_HANDLE Handle,
 NTSTATUS
 SampCloseDbObject(PSAM_DB_OBJECT DbObject)
 {
-    PSAM_DB_OBJECT ParentObject = NULL;
     NTSTATUS Status = STATUS_SUCCESS;
 
     DbObject->RefCount--;
@@ -370,9 +369,6 @@ SampCloseDbObject(PSAM_DB_OBJECT DbObject)
     if (DbObject->MembersKeyHandle != NULL)
         SampRegCloseKey(DbObject->MembersKeyHandle);
 
-    if (DbObject->ParentObject != NULL)
-        ParentObject = DbObject->ParentObject;
-
     if (DbObject->Name != NULL)
         RtlFreeHeap(RtlGetProcessHeap(), 0, DbObject->Name);