evas vg: Removed macro from thorvg initialization code. 46/258846/1
authorMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Wed, 26 May 2021 12:28:28 +0000 (14:28 +0200)
committerMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Wed, 26 May 2021 12:28:28 +0000 (14:28 +0200)
Now thorvg is used as default so macro is not necessary there.

Change-Id: I9b40c47b268bc4bd35f01a8c46d45518707f3d2f

src/lib/evas/vg/evas_vg_cache.c

index 8ec385b..2dc0586 100644 (file)
@@ -271,11 +271,9 @@ evas_cache_vg_init(void)
         return;
      }
 
-#ifdef HAVE_THORVG
    int cpu_cnt = eina_cpu_count() - 1;
    if (cpu_cnt < 0) cpu_cnt = 0;
    tvg_engine_init(TVG_ENGINE_SW, cpu_cnt);
-#endif
 
    vg_cache->vfd_hash = eina_hash_string_superfast_new(_evas_cache_vg_data_free_cb);
    vg_cache->vg_entry_hash = eina_hash_string_superfast_new(_evas_cache_vg_entry_free_cb);
@@ -322,9 +320,7 @@ evas_cache_vg_shutdown(void)
    if (!vg_cache) return;
    vg_cache->ref--;
 
-#ifdef HAVE_THORVG
    tvg_engine_term(TVG_ENGINE_SW);
-#endif
 
    if (vg_cache->ref > 0) return;