This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 26dd602fa0f35ef86e41d8eb85fff3c0fd96effa
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Jul 16 20:33:30 2023 +0200

    image cache: Drop redundant cleanup
    
    Already done in __imlib_CurrentCacheSize().
---
 src/lib/image.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/lib/image.c b/src/lib/image.c
index b9f601a..5ec4d15 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -304,22 +304,11 @@ __imlib_CurrentCacheSize(void)
 static void
 __imlib_CleanupImageCache(void)
 {
-   ImlibImage         *im, *im_next, *im_del;
+   ImlibImage         *im, *im_del;
    int                 current_cache;
 
    current_cache = __imlib_CurrentCacheSize();
 
-   /* remove 0 ref count invalid (dirty) images */
-   for (im = images; im; im = im_next)
-     {
-        im_next = im->next;
-        if (im->references <= 0 && IM_FLAG_ISSET(im, F_INVALID))
-          {
-             __imlib_RemoveImageFromCache(im);
-             __imlib_ConsumeImage(im);
-          }
-     }
-
    /* while the cache size of 0 ref coutn data is bigger than the set value */
    /* clean out the oldest members of the imaeg cache */
    while (current_cache > cache_size)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to