Remove redundant language setting 02/122202/7
authorZofia Abramowska <z.abramowska@samsung.com>
Tue, 28 Mar 2017 17:11:26 +0000 (19:11 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 3 Apr 2017 17:13:21 +0000 (19:13 +0200)
Change-Id: I2dc8e2b61133e7cb7a49ef972536f8e02668f54c

src/agent/notification-daemon/main.cpp

index d178768..c40e9c6 100644 (file)
  * @brief       Main askuser notification daemon file
  */
 
-#include <clocale>
-#include <csignal>
-#include <cstdlib>
-#include <string>
-#include <thread>
-#include <unistd.h>
-#include <vconf.h>
-
 #ifdef BUILD_WITH_SYSTEMD_DAEMON
 #include <systemd/sd-daemon.h>
 #endif
 
+#include <exception>
 #include <exception/Exception.h>
 #include <log/alog.h>
 
-#include "GuiRunner.h"
 #include "AskUserTalker.h"
 
 int main()
 {
     using namespace AskUser::Notification;
-    init_agent_log();
-    char *lang = vconf_get_str(VCONFKEY_LANGSET);
-    if (lang)
-    {
-        elm_language_set(lang);
-        free(lang);
-    }
-    else
-        ALOGE("language_set failed.");
-
     try {
+        init_agent_log();
         AskUserTalker askUserTalker;
         askUserTalker.init();