[weather] Remove unused iconPeriod* variables

parent bfac9ca9
......@@ -34,8 +34,6 @@
WeatherData::WeatherData()
: obsTime()
, iconPeriodHour(12)
, iconPeriodMinute(0)
, longitude(qQNaN())
, latitude(qQNaN())
, condition()
......@@ -600,10 +598,6 @@ void UKMETIon::parseWeatherObservation(const QString& source, WeatherData& data,
// Saturday - 13:00 CET
// Saturday - 12:00 GMT
m_dateFormat = QDateTime::fromString(data.obsTime.section('-', 1, 1).trimmed(), "hh:mm ZZZ");
if (m_dateFormat.isValid()) {
data.iconPeriodHour = m_dateFormat.toString("hh").toInt();
data.iconPeriodMinute = m_dateFormat.toString("mm").toInt();
}
} else {
#endif
m_dateFormat = QDateTime();
......
......@@ -46,8 +46,6 @@ public:
QString stationName;
// Current observation information.
QString obsTime;
int iconPeriodHour;
int iconPeriodMinute;
double longitude;
double latitude;
......
......@@ -794,8 +794,6 @@ void EnvCanadaIon::parseDateTime(WeatherData& data, QXmlStreamReader& xml, Weath
xml.readElementText();
m_dateFormat = QDateTime::fromString(selectTimeStamp, QStringLiteral("yyyyMMddHHmmss"));
data.obsTimestamp = m_dateFormat.toString(QStringLiteral("dd.MM.yyyy @ hh:mm"));
data.iconPeriodHour = m_dateFormat.toString(QStringLiteral("hh")).toInt();
data.iconPeriodMinute = m_dateFormat.toString(QStringLiteral("mm")).toInt();
} else if (dateType == QLatin1String("forecastIssue")) {
data.forecastTimestamp = xml.readElementText();
} else if (dateType == QLatin1String("sunrise")) {
......
......@@ -82,10 +82,6 @@ public:
// Current observation information.
QString obsTimestamp;
// Icon info to aproximate periods
int iconPeriodHour;
int iconPeriodMinute;
QString condition;
float temperature;
float dewpoint;
......
......@@ -414,8 +414,6 @@ void NOAAIon::parseWeatherSite(WeatherData& data, QXmlStreamReader& xml)
QStringList tmpDateStr = data.observationTime.split(QLatin1Char(' '));
data.observationTime = QStringLiteral("%1 %2").arg(tmpDateStr[6], tmpDateStr[7]);
m_dateFormat = QDateTime::fromString(data.observationTime, QStringLiteral("h:mm ap"));
data.iconPeriodHour = m_dateFormat.toString(QStringLiteral("HH"));
data.iconPeriodAP = m_dateFormat.toString(QStringLiteral("ap"));
} else if (elementName == QLatin1String("weather")) {
const QString weather = xml.readElementText();
......
......@@ -51,8 +51,6 @@ public:
// Current observation information.
QString observationTime;
QString iconPeriodHour;
QString iconPeriodAP;
QString weather;
float temperature_F;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment