diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 17:21:43 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 17:21:43 +0000 |
commit | dd0979e4c86c5e9ee51a6b659464aa9bfd28ec2a (patch) | |
tree | 9a613e1b434019f66c634d66bed256ef02270273 /plugins | |
parent | 03e18d1f4f3f014453258c12f5e546b879ec955a (diff) |
Toaster: commented code removed (it not supported for desktop apps)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15153 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Toaster/src/toast_notification.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index 89a24f32d7..c19566f767 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -2,19 +2,6 @@ using namespace Microsoft::WRL;
-CMString GetStringChunk(const TCHAR *haystack, const TCHAR *start, const TCHAR *end)
-{
- const TCHAR *sstart = wcsstr(haystack, start);
- if (sstart == NULL)
- return CMString();
-
- sstart = sstart + mir_wstrlen(start);
- const TCHAR *send = wcsstr(sstart, end);
- if (send == NULL)
- return CMString(sstart);
- return CMString(sstart, send - sstart);
-}
-
ToastNotification::ToastNotification(_In_ wchar_t* text, _In_ wchar_t* caption, _In_ wchar_t* imagePath)
: _text(text), _caption(caption), _imagePath(imagePath)
{
@@ -61,19 +48,6 @@ HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXml {
HXML xmlTextNode = xmlAddChild(xmlBindingNode, L"text", _text);
xmlAddAttr(xmlTextNode, L"id", L"2");
-
-/*
- if (IsWinVer10Plus())
- {
- CMString link = GetStringChunk(_text, L"[img]", L"[/img]");
- if (!link.IsEmpty())
- {
- HXML xmlInlineImageNode = xmlAddChild(xmlBindingNode, L"image", NULL);
- xmlAddAttr(xmlInlineImageNode, L"placement", L"inline");
- xmlAddAttr(xmlInlineImageNode, L"src", link);
- }
- }
-*/
}
TCHAR *xtmp = xmlToString(xmlToast, NULL);
|