[Spice-devel] [PATCH qxl-wddm-dod 1/2] Remove unused code
Frediano Ziglio
fziglio at redhat.com
Tue Nov 22 12:28:52 UTC 2016
From: Javier Celaya <javier.celaya at flexvdi.com>
Signed-off-by: Javier Celaya <javier.celaya at flexvdi.com>
---
qxldod/QxlDod.cpp | 51 ---------------------------------------------------
qxldod/QxlDod.h | 3 ---
2 files changed, 54 deletions(-)
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 8f31714..7bd2ead 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -1874,57 +1874,6 @@ NTSTATUS QxlDod::RegisterHWInfo(_In_ ULONG Id)
return Status;
}
-NTSTATUS QxlDod::ReadConfiguration()
-{
- PAGED_CODE();
-
- NTSTATUS Status;
- DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
-
- HANDLE DevInstRegKeyHandle;
- Status = IoOpenDeviceRegistryKey(m_pPhysicalDevice, PLUGPLAY_REGKEY_DRIVER, KEY_SET_VALUE, &DevInstRegKeyHandle);
- if (!NT_SUCCESS(Status))
- {
- DbgPrint(TRACE_LEVEL_ERROR, ("IoOpenDeviceRegistryKey failed for PDO: 0x%I64x, Status: 0x%I64x", m_pPhysicalDevice, Status));
- return Status;
- }
- UNICODE_STRING ValueName;
- UCHAR Buffer[sizeof(KEY_VALUE_PARTIAL_INFORMATION)+sizeof(ULONG)];
- PKEY_VALUE_PARTIAL_INFORMATION Value = (PKEY_VALUE_PARTIAL_INFORMATION)Buffer;
- ULONG ValueLength = sizeof(Buffer);
- ULONG ResultLength;
- ULONG Length;
-
- RtlInitUnicodeString(&ValueName, L"VgaCompatible");
-
- Status = ZwQueryValueKey(DevInstRegKeyHandle,
- &ValueName,
- KeyValuePartialInformation,
- Value,
- ValueLength,
- &ResultLength);
-
- if (NT_SUCCESS(Status)) {
- m_VgaCompatible = *(PULONG)(Value->Data);
- }
-
- RtlInitUnicodeString(&ValueName, L"PointerCaps");
-
- Status = ZwQueryValueKey(DevInstRegKeyHandle,
- &ValueName,
- KeyValuePartialInformation,
- Value,
- ValueLength,
- &ResultLength);
-
- if (NT_SUCCESS(Status)) {
- m_PointerCaps = *(PULONG)(Value->Data);
- }
-
- DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
- return Status;
-}
-
QXL_NON_PAGED
D3DDDI_VIDEO_PRESENT_SOURCE_ID QxlDod::FindSourceForTarget(D3DDDI_VIDEO_PRESENT_TARGET_ID TargetId, BOOLEAN DefaultToZero)
{
diff --git a/qxldod/QxlDod.h b/qxldod/QxlDod.h
index 8503f29..b151484 100755
--- a/qxldod/QxlDod.h
+++ b/qxldod/QxlDod.h
@@ -619,8 +619,6 @@ private:
DXGKARG_SETPOINTERSHAPE m_PointerShape;
HwDeviceInterface* m_pHWDevice;
- DWORD m_VgaCompatible;
- DWORD m_PointerCaps;
public:
QxlDod(_In_ DEVICE_OBJECT* pPhysicalDeviceObject);
~QxlDod(void);
@@ -743,7 +741,6 @@ private:
NTSTATUS IsVidPnSourceModeFieldsValid(CONST D3DKMDT_VIDPN_SOURCE_MODE* pSourceMode) const;
NTSTATUS IsVidPnPathFieldsValid(CONST D3DKMDT_VIDPN_PRESENT_PATH* pPath) const;
NTSTATUS RegisterHWInfo(_In_ ULONG Id);
- NTSTATUS ReadConfiguration();
};
NTSTATUS
--
2.7.4
More information about the Spice-devel
mailing list