diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-19 21:39:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-19 21:39:19 +0000 |
commit | 3ec92e4c6b86dfffb75cdcd22f4053376615a412 (patch) | |
tree | 2ec78e2685af93e50cd9da86cdfadcb5c2265424 /src/modules/extraicons/usedIcons.cpp | |
parent | e06301258eb9730619cd527917965dd2ed82ef7a (diff) |
okay, clutch removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2381 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons/usedIcons.cpp')
-rw-r--r-- | src/modules/extraicons/usedIcons.cpp | 43 |
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++) {
|