Huw Davies : ole32: Remove unused variable.

Alexandre Julliard julliard at winehq.org
Fri Dec 8 13:51:30 CST 2017


Module: wine
Branch: master
Commit: a343607909b7adb613a2b3323c42afd41790e11d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a343607909b7adb613a2b3323c42afd41790e11d

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Dec  8 10:52:44 2017 +0000

ole32: Remove unused variable.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/datacache.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c
index b418301..6a13485 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -1842,23 +1842,11 @@ static HRESULT WINAPI DataCache_Save(
 {
     DataCache *This = impl_from_IPersistStorage(iface);
     DataCacheEntry *cache_entry;
-    BOOL dirty = FALSE;
     HRESULT hr = S_OK;
     unsigned short stream_number = 0;
 
     TRACE("(%p, %p, %d)\n", iface, pStg, fSameAsLoad);
 
-    dirty = This->dirty;
-    if (!dirty)
-    {
-        LIST_FOR_EACH_ENTRY(cache_entry, &This->cache_list, DataCacheEntry, entry)
-        {
-            dirty = cache_entry->dirty;
-            if (dirty)
-                break;
-        }
-    }
-
     /* assign stream numbers to the cache entries */
     LIST_FOR_EACH_ENTRY(cache_entry, &This->cache_list, DataCacheEntry, entry)
     {




More information about the wine-cvs mailing list