[Spice-devel] [PATCH qxl-wddm-dod 04/12] Remove unused EmptyReleaseRing method

Frediano Ziglio fziglio at redhat.com
Wed Apr 12 13:19:51 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 qxldod/QxlDod.cpp | 11 -----------
 qxldod/QxlDod.h   |  1 -
 2 files changed, 12 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 813ab44..0c2c9c5 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4014,17 +4014,6 @@ void QxlDevice::FlushReleaseRing()
     DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
 }
 
-void QxlDevice::EmptyReleaseRing()
-{
-    PAGED_CODE();
-    BOOLEAN locked = FALSE;
-    locked = WaitForObject(&m_MemLock, NULL);
-    while (m_FreeOutputs || !SPICE_RING_IS_EMPTY(m_ReleaseRing)) {
-        FlushReleaseRing();
-    }
-    ReleaseMutex(&m_MemLock, locked);
-}
-
 UINT64 QxlDevice::ReleaseOutput(UINT64 output_id)
 {
     PAGED_CODE();
diff --git a/qxldod/QxlDod.h b/qxldod/QxlDod.h
index 154ce80..6308ab1 100755
--- a/qxldod/QxlDod.h
+++ b/qxldod/QxlDod.h
@@ -593,7 +593,6 @@ private:
     void FreeMem(void *ptr);
     UINT64 ReleaseOutput(UINT64 output_id);
     void WaitForReleaseRing(void);
-    void EmptyReleaseRing(void);
     BOOL SetClip(const RECT *clip, QXLDrawable *drawable);
     void AddRes(QXLOutput *output, Resource *res);
     void DrawableAddRes(QXLDrawable *drawable, Resource *res);
-- 
2.9.3



More information about the Spice-devel mailing list