summaryrefslogtreecommitdiffstats
path: root/qml/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'qml/js/utils.js')
-rw-r--r--qml/js/utils.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/qml/js/utils.js b/qml/js/utils.js
index 76dffe3..cf5948f 100644
--- a/qml/js/utils.js
+++ b/qml/js/utils.js
@@ -125,20 +125,6 @@ function getMaxMinTemp(dayModel) {
return [minTemp, maxTemp]
}
-function getMaxTempLenght(cityModel) {
- var maxLength = 1
- for (var indexDay = 0; indexDay < cityModel.daysCount(); indexDay++) {
- var day = cityModel.getDayModel(indexDay)
- var range = getMaxMinTemp(day)
- maxLength = Math.max(range[0].toString().length, maxLength)
- maxLength = Math.max(range[1].toString().length, maxLength)
- }
- var stringTemp = "555" // temperatures estimated between -55 and +55
- if (maxLength === 3)
- stringTemp = "-" + stringTemp
- return stringTemp.substring(0, maxLength)
-}
-
// WeatherModel utils
function getWindType(windspeed)