Remove currently unused IMB_cache_limiter_* function.
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Oct 2011 17:26:24 +0000 (17:26 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Oct 2011 17:26:24 +0000 (17:26 +0000)
Would be replaced with movie cache soon.

source/blender/blenkernel/intern/sequencer.c
source/blender/imbuf/intern/allocimbuf.c

index 3dcbe03..6b319e6 100644 (file)
@@ -2505,9 +2505,6 @@ static void *seq_prefetch_thread(void * This_)
 
                for (e = prefetch_done.first; e; e = e->next) {
                        if (s_last > e->monoton_cfra) {
 
                for (e = prefetch_done.first; e; e = e->next) {
                        if (s_last > e->monoton_cfra) {
-                               if (e->ibuf) {
-                                       IMB_cache_limiter_unref(e->ibuf);
-                               }
                                BLI_remlink(&prefetch_done, e);
                                MEM_freeN(e);
                        }
                                BLI_remlink(&prefetch_done, e);
                                MEM_freeN(e);
                        }
@@ -2585,9 +2582,6 @@ static void seq_stop_threads()
        }
 
        for (e = prefetch_done.first; e; e = e->next) {
        }
 
        for (e = prefetch_done.first; e; e = e->next) {
-               if (e->ibuf) {
-                       IMB_cache_limiter_unref(e->ibuf);
-               }
                BLI_remlink(&prefetch_done, e);
                MEM_freeN(e);
        }
                BLI_remlink(&prefetch_done, e);
                MEM_freeN(e);
        }
index da08671..98828c5 100644 (file)
@@ -164,7 +164,6 @@ void IMB_freeImBuf(ImBuf *ibuf)
                        IMB_freezbufImBuf(ibuf);
                        IMB_freezbuffloatImBuf(ibuf);
                        freeencodedbufferImBuf(ibuf);
                        IMB_freezbufImBuf(ibuf);
                        IMB_freezbuffloatImBuf(ibuf);
                        freeencodedbufferImBuf(ibuf);
-                       IMB_cache_limiter_unmanage(ibuf);
                        IMB_metadata_free(ibuf);
                        MEM_freeN(ibuf);
                }
                        IMB_metadata_free(ibuf);
                        MEM_freeN(ibuf);
                }
@@ -471,56 +470,3 @@ static MEM_CacheLimiterC **get_imbuf_cache_limiter(void)
 
        return &c;
 }
 
        return &c;
 }
-
-void IMB_free_cache_limiter(void)
-{
-       delete_MEM_CacheLimiter(*get_imbuf_cache_limiter());
-       *get_imbuf_cache_limiter() = NULL;
-}
-
-void IMB_cache_limiter_insert(ImBuf *i)
-{
-       if(!i->c_handle) {
-               i->c_handle = MEM_CacheLimiter_insert(
-                       *get_imbuf_cache_limiter(), i);
-               MEM_CacheLimiter_ref(i->c_handle);
-               MEM_CacheLimiter_enforce_limits(
-                       *get_imbuf_cache_limiter());
-               MEM_CacheLimiter_unref(i->c_handle);
-       }
-}
-
-void IMB_cache_limiter_unmanage(ImBuf *i)
-{
-       if(i->c_handle) {
-               MEM_CacheLimiter_unmanage(i->c_handle);
-               i->c_handle = NULL;
-       }
-}
-
-void IMB_cache_limiter_touch(ImBuf *i)
-{
-       if(i->c_handle)
-               MEM_CacheLimiter_touch(i->c_handle);
-}
-
-void IMB_cache_limiter_ref(ImBuf *i)
-{
-       if(i->c_handle)
-               MEM_CacheLimiter_ref(i->c_handle);
-}
-
-void IMB_cache_limiter_unref(ImBuf *i)
-{
-       if(i->c_handle)
-               MEM_CacheLimiter_unref(i->c_handle);
-}
-
-int IMB_cache_limiter_get_refcount(ImBuf *i)
-{
-       if(i->c_handle)
-               return MEM_CacheLimiter_get_refcount(i->c_handle);
-
-       return 0;
-}
-