summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgen Servetnik <e.servetnik@samsung.com>2017-08-14 16:44:16 +0300
committerEvgen Servetnik <e.servetnik@samsung.com>2017-08-14 16:44:16 +0300
commit3ee8a82a12e2be5507481cc8ac326a0cfb7add45 (patch)
tree8fac8c4705d3659eab2a2d03f8207c85a6b73242
parentb727963da49686a34ce818aa9de6901d7def4f47 (diff)
downloadidle-clock-digital-3ee8a82a12e2be5507481cc8ac326a0cfb7add45.tar.gz
idle-clock-digital-3ee8a82a12e2be5507481cc8ac326a0cfb7add45.tar.bz2
idle-clock-digital-3ee8a82a12e2be5507481cc8ac326a0cfb7add45.zip
TizenRefApp-9106 Fix sonar issues
Change-Id: Iafc0e042335a2cce3fb049c633075c77b25f0d5f Signed-off-by: Evgen Servetnik <e.servetnik@samsung.com>
-rw-r--r--src/App/src/DateTimeFormatter.cpp1
-rw-r--r--src/Common/inc/I18nString.h1
-rw-r--r--src/Common/inc/WatchWindow.h4
-rw-r--r--src/Common/src/I18nString.cpp5
-rw-r--r--src/Common/src/WatchWindow.cpp20
5 files changed, 0 insertions, 31 deletions
diff --git a/src/App/src/DateTimeFormatter.cpp b/src/App/src/DateTimeFormatter.cpp
index e5ab173..0b45bf9 100644
--- a/src/App/src/DateTimeFormatter.cpp
+++ b/src/App/src/DateTimeFormatter.cpp
@@ -135,7 +135,6 @@ void DateTimeFormatter::updateDate()
I18nString uBestPattern(128);
i18n_udatepg_get_best_pattern(m_Gen, skeleton, skeleton.getLen(), uBestPattern, uBestPattern.getCapacity(), &bestPatternLen);
- std::string aPattern = uBestPattern.toStr();
i18n_udate_create(I18N_UDATE_PATTERN, I18N_UDATE_PATTERN, m_Region.c_str(), m_TimeZoneId, -1, uBestPattern, -1, &m_Date);
LOG("BestPattern: ", uBestPattern.toStr());
}
diff --git a/src/Common/inc/I18nString.h b/src/Common/inc/I18nString.h
index 3203030..441f576 100644
--- a/src/Common/inc/I18nString.h
+++ b/src/Common/inc/I18nString.h
@@ -41,7 +41,6 @@ namespace IdleClock {
std::string toStr() const;
size_t getCapacity() const;
void clear();
- bool isEmpty() const;
private:
using Impl = std::basic_string<i18n_uchar>;
diff --git a/src/Common/inc/WatchWindow.h b/src/Common/inc/WatchWindow.h
index 54b7877..a31d5db 100644
--- a/src/Common/inc/WatchWindow.h
+++ b/src/Common/inc/WatchWindow.h
@@ -28,10 +28,6 @@ namespace IdleClock {
Evas_Object *getLayout() const;
void setContent(Evas_Object *content);
- void getScreenSize(int *w, int *h) const;
- int getRotation() const;
- void lower();
- void raise();
};
}
diff --git a/src/Common/src/I18nString.cpp b/src/Common/src/I18nString.cpp
index cac4eac..1aa7d54 100644
--- a/src/Common/src/I18nString.cpp
+++ b/src/Common/src/I18nString.cpp
@@ -95,11 +95,6 @@ void I18nString::clear()
std::basic_string<i18n_uchar>::clear();
}
-bool I18nString::isEmpty() const
-{
- return Impl::empty();
-}
-
void I18nString::copyStr(const I18nString &that)
{
copyStr(that.getUStr());
diff --git a/src/Common/src/WatchWindow.cpp b/src/Common/src/WatchWindow.cpp
index 5c87fb6..9f93e3a 100644
--- a/src/Common/src/WatchWindow.cpp
+++ b/src/Common/src/WatchWindow.cpp
@@ -43,16 +43,6 @@ WatchWindow::~WatchWindow()
{
}
-void WatchWindow::lower()
-{
- elm_win_lower(getEo());
-}
-
-void WatchWindow::raise()
-{
- elm_win_raise(getEo());
-}
-
Evas_Object *WatchWindow::getLayout() const
{
return getEo();
@@ -65,13 +55,3 @@ void WatchWindow::setContent(Evas_Object *content)
elm_win_resize_object_add(getEo(), content);
}
-void WatchWindow::getScreenSize(int *w, int *h) const
-{
- elm_win_screen_size_get(getEo(), nullptr, nullptr, w, h);
-}
-
-int WatchWindow::getRotation() const
-{
- return elm_win_rotation_get(getEo());
-}
-