[dali_2.3.22] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / animated-image / image-cache.cpp
index 41879c7..ece9014 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,7 +14,8 @@
  * limitations under the License.
  */
 
-#include "image-cache.h"
+// CLASS HEADER
+#include <dali-toolkit/internal/visuals/animated-image/image-cache.h>
 
 namespace Dali
 {
@@ -41,23 +42,12 @@ ImageCache::ImageCache(TextureManager&                     textureManager,
   mInterval(interval),
   mLoadState(TextureManager::LoadState::NOT_STARTED),
   mRequestingLoad(false),
-  mPreMultiplyOnLoad(preMultiplyOnLoad),
-  mTextureManagerAlive(true)
+  mPreMultiplyOnLoad(preMultiplyOnLoad)
 {
-  mTextureManager.AddObserver(*this);
 }
 
 ImageCache::~ImageCache()
 {
-  if(mTextureManagerAlive)
-  {
-    mTextureManager.RemoveObserver(*this);
-  }
-}
-
-void ImageCache::TextureManagerDestroyed()
-{
-  mTextureManagerAlive = false;
 }
 
 void ImageCache::SetInterval(uint32_t interval)