Delete ImageFactory and ImageFactoryCache as they are unused
[platform/core/uifw/dali-core.git] / dali / internal / event / common / thread-local-storage.cpp
index 72cf2b7..33d4540 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
@@ -30,15 +30,18 @@ namespace Internal
 
 namespace
 {
+#if defined(EMSCRIPTEN)
+ThreadLocalStorage* threadLocal = NULL;
+#else
 __thread ThreadLocalStorage* threadLocal = NULL;
+#endif
 }
 
 ThreadLocalStorage::ThreadLocalStorage(Core* core)
-: mCore(core)
+: mCore( core )
 {
   DALI_ASSERT_ALWAYS( threadLocal == NULL && "Cannot create more than one ThreadLocalStorage object" );
 
-  // reset is used to store a new value associated with this thread
   threadLocal = this;
 }
 
@@ -94,16 +97,6 @@ ResourceClient& ThreadLocalStorage::GetResourceClient()
   return mCore->GetResourceClient();
 }
 
-ImageFactory& ThreadLocalStorage::GetImageFactory()
-{
-  return mCore->GetImageFactory();
-}
-
-FontFactory& ThreadLocalStorage::GetFontFactory()
-{
-  return mCore->GetFontFactory();
-}
-
 ShaderFactory& ThreadLocalStorage::GetShaderFactory()
 {
   return mCore->GetShaderFactory();
@@ -119,9 +112,9 @@ GestureEventProcessor& ThreadLocalStorage::GetGestureEventProcessor()
   return mCore->GetGestureEventProcessor();
 }
 
-EmojiFactory& ThreadLocalStorage::GetEmojiFactory()
+RelayoutController& ThreadLocalStorage::GetRelayoutController()
 {
-  return mCore->GetEmojiFactory();
+  return mCore->GetRelayoutController();
 }
 
 } // namespace Internal