summaryrefslogtreecommitdiff
path: root/src/modules/extraicons/usedIcons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extraicons/usedIcons.cpp')
-rw-r--r--src/modules/extraicons/usedIcons.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/modules/extraicons/usedIcons.cpp b/src/modules/extraicons/usedIcons.cpp
index 682573168b..3b2eb3f6a6 100644
--- a/src/modules/extraicons/usedIcons.cpp
+++ b/src/modules/extraicons/usedIcons.cpp
@@ -31,14 +31,6 @@ struct Icon
name(icolibName), hIcoLib(0), refCount(0), hImage(INVALID_HANDLE_VALUE)
{
}
-
- Icon(HANDLE _hIcolib) :
- hIcoLib(_hIcolib), refCount(0), hImage(INVALID_HANDLE_VALUE)
- {
- char szId[30];
- wsprintfA(szId, "{%p}", _hIcolib);
- name = szId;
- }
};
static vector<Icon> usedIcons;
@@ -71,34 +63,6 @@ static Icon* FindIcon(const char *icolibName)
return icon;
}
-static Icon* FindIcon(HANDLE hIcolib)
-{
- Icon *icon = NULL;
-
- for (unsigned int i = 0; i < usedIcons.size(); i++) {
- Icon *tmp = &usedIcons[i];
- if (tmp->hImage == hIcolib) {
- icon = tmp;
- break;
- }
- }
-
- if (icon == NULL) {
- usedIcons.push_back( Icon(hIcolib));
- icon = &usedIcons[usedIcons.size() - 1];
- }
-
- if (icon->hImage == INVALID_HANDLE_VALUE) {
- HICON hIcon = Skin_GetIconByHandle(icon->hIcoLib);
- if (hIcon != NULL) {
- icon->hImage = ExtraIcon_Add(hIcon);
- Skin_ReleaseIcon(hIcon);
- }
- }
-
- return icon;
-}
-
HANDLE GetIcon(const char *icolibName)
{
return FindIcon(icolibName)->hImage;
@@ -111,13 +75,6 @@ HANDLE AddIcon(const char *icolibName)
return icon->hImage;
}
-HANDLE AddIcon(HANDLE hIcolib)
-{
- Icon *icon = FindIcon(hIcolib);
- icon->refCount++;
- return icon->hImage;
-}
-
void RemoveIcon(const char *icolibName)
{
for (unsigned int i = 0; i < usedIcons.size(); i++) {