Revert "Fix uncaught exception" 73/242573/1
authorSangwan Kwon <sangwan.kwon@samsung.com>
Fri, 28 Aug 2020 04:36:44 +0000 (13:36 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Fri, 28 Aug 2020 04:36:52 +0000 (13:36 +0900)
- False-positive defect

This reverts commit d98f44208cabb72b8b4a99d25dc9b40bf8e107dd.

Change-Id: I384c117cabad0730aaf2cc83eef8d318be79b5b2
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/framework/ui/popup/popup.cpp

index a69b633..c2482dc 100644 (file)
@@ -22,7 +22,6 @@
  */
 #include "popup.h"
 #include "popup-string.h"
-#include "common/exception.h"
 
 #include <package-info.h>
 #include <app_control.h>
@@ -133,12 +132,8 @@ void Popup::reset()
 
 Popup::~Popup()
 {
-       try {
-               if (m_win != nullptr)
-                       evas_object_del(m_win);
-       } catch (const std::exception& e) {
-               ERROR("std exception: " << e.what());
-       }
+       if (m_win != nullptr)
+               evas_object_del(m_win);
 }
 
 void Popup::setButtons(const std::vector<Popup::Button> &buttons)
@@ -208,20 +203,16 @@ void Popup::setDefaultProperties(Evas_Object *obj) noexcept
 
 void Popup::setRotationToWin(Evas_Object *win) noexcept
 {
-       try {
-               if (!elm_win_wm_rotation_supported_get(win)) {
-                       DEBUG("Window manager doesn't support rotation.");
-                       return;
-               }
-
-               int rots[4] = { 0, 90, 180, 270 };
-               elm_win_wm_rotation_available_rotations_set(win,
-                       reinterpret_cast<const int *>(&rots), 4);
-               evas_object_smart_callback_add(win, "rotation,changed",
-                       rotationChangedCb, m_popup);
-       } catch (const std::exception& e) {
-               ERROR("std exception: " << e.what());
+       if (!elm_win_wm_rotation_supported_get(win)) {
+               DEBUG("Window manager doesn't support rotation.");
+               return;
        }
+
+       int rots[4] = { 0, 90, 180, 270 };
+       elm_win_wm_rotation_available_rotations_set(win,
+               reinterpret_cast<const int *>(&rots), 4);
+       evas_object_smart_callback_add(win, "rotation,changed",
+               rotationChangedCb, m_popup);
 }
 
 void Popup::setText(Evas_Object *obj, const std::string &text) noexcept