diff options
author | Caroline Chao <caroline.chao@digia.com> | 2014-03-18 15:44:06 +0100 |
---|---|---|
committer | Caroline Chao <caroline.chao@digia.com> | 2014-03-24 08:42:57 +0100 |
commit | 074aeb63bc0f648bc8c65cc7b3609a1c826bc790 (patch) | |
tree | c35593d40cd4f7b81b95ec5125167b7109e2e245 /qml/js | |
parent | 54054b67d9672ec4ced58bc19ed449bb6c42a630 (diff) |
Small fixes / cleanup
- Remove useless JS function
- Use CONSTANT for constant properties
Change-Id: Ie921852250f3f7df718d998e7b3d160dc7db6a15
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'qml/js')
-rw-r--r-- | qml/js/utils.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/qml/js/utils.js b/qml/js/utils.js index 69ab20c..2bf6907 100644 --- a/qml/js/utils.js +++ b/qml/js/utils.js @@ -271,23 +271,3 @@ function getWeatherUrl(index, dayModel, size) smallUrl = smallUrl return dayModel.getCachedImageFile(smallUrl) } - -function getLongestShortDayName() -{ - // Used to get the maximum short day length - var longestDayName = "" - for (var day = 0; day < 6; day++) { - var temp = Qt.locale().dayName(day, QtQml.Locale.ShortFormat) - if (temp.toString().length > longestDayName.toString().length) - longestDayName = temp - } - return longestDayName -} - -function getTodayShortDate() -{ - // Used to get the short date format length - var currentDate = new Date() - return getShortDate(currentDate) -} - |