summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src/weather_data.cpp')
-rw-r--r--protocols/Weather/src/weather_data.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/protocols/Weather/src/weather_data.cpp b/protocols/Weather/src/weather_data.cpp
index 88c1572f43..c926787c81 100644
--- a/protocols/Weather/src/weather_data.cpp
+++ b/protocols/Weather/src/weather_data.cpp
@@ -346,53 +346,6 @@ void CWeatherProto::GetDataValue(WIDATAITEM *UpdateData, wchar_t *Data, wchar_t
}
/////////////////////////////////////////////////////////////////////////////////////////
-// copy a string into a new memory location
-// Data = the field the data is copied to
-// Value = the original string, the string where data is copied from
-
-bool g_bIsUtf = false;
-
-void wSetData(char *&Data, const char *Value)
-{
- if (Value[0] != 0)
- Data = mir_strdup(Value);
- else
- Data = "";
-}
-
-void wSetData(wchar_t *&Data, const char *Value)
-{
- if (Value[0] != 0)
- Data = (g_bIsUtf) ? mir_utf8decodeW(Value) : mir_a2u(Value);
- else
- Data = L"";
-}
-
-void wSetData(wchar_t *&Data, const wchar_t *Value)
-{
- if (Value[0] != 0)
- Data = mir_wstrdup(Value);
- else
- Data = L"";
-}
-
-// A safer free function that free memory for a string
-// Data = the string occuping the data to be freed
-void wfree(char *&Data)
-{
- if (Data && mir_strlen(Data) > 0)
- mir_free(Data);
- Data = nullptr;
-}
-
-void wfree(wchar_t *&Data)
-{
- if (Data && mir_wstrlen(Data) > 0)
- mir_free(Data);
- Data = nullptr;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
// get single setting that is found
// szSetting = the setting name
// lparam = the counter