https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a9193b5cc2891ae888afe…
commit a9193b5cc2891ae888afe059c4833985159efcb0
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Dec 30 09:45:06 2020 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:23 2021 +0100
[NTOS:CC] Remove dead code
---
ntoskrnl/cc/view.c | 18 ------------------
ntoskrnl/include/internal/cc.h | 4 ----
2 files changed, 22 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 4866db4f849..40413a91601 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -1092,24 +1092,6 @@ CcRosReferenceCache (
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
}
-VOID
-NTAPI
-CcRosRemoveIfClosed (
- PSECTION_OBJECT_POINTERS SectionObjectPointer)
-{
- PROS_SHARED_CACHE_MAP SharedCacheMap;
- KIRQL OldIrql;
-
- DPRINT("CcRosRemoveIfClosed()\n");
- OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
- SharedCacheMap = SectionObjectPointer->SharedCacheMap;
- if (SharedCacheMap && SharedCacheMap->OpenCount == 0)
- {
- CcRosDeleteFileCache(SharedCacheMap->FileObject, SharedCacheMap,
&OldIrql);
- }
- KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
-}
-
NTSTATUS
NTAPI
CcRosReleaseFileCache (
diff --git a/ntoskrnl/include/internal/cc.h b/ntoskrnl/include/internal/cc.h
index 65fd3fe6ffa..32692c01db0 100644
--- a/ntoskrnl/include/internal/cc.h
+++ b/ntoskrnl/include/internal/cc.h
@@ -382,10 +382,6 @@ VOID
NTAPI
CcRosReferenceCache(PFILE_OBJECT FileObject);
-VOID
-NTAPI
-CcRosRemoveIfClosed(PSECTION_OBJECT_POINTERS SectionObjectPointer);
-
NTSTATUS
NTAPI
CcRosReleaseVacb(