From c9c3e1ab8114a15d3b9807d89d960f596fa39e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 31 Mar 2011 11:45:25 +0000 Subject: [PATCH] Removed some dead and broken code for setting a document icon. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41151 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/icon-o-matic/IconEditorApp.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/apps/icon-o-matic/IconEditorApp.cpp b/src/apps/icon-o-matic/IconEditorApp.cpp index aaa8f5b8d6..66622ea1df 100644 --- a/src/apps/icon-o-matic/IconEditorApp.cpp +++ b/src/apps/icon-o-matic/IconEditorApp.cpp @@ -757,25 +757,4 @@ IconEditorApp::_InstallDocumentMimeType() fprintf(stderr, "Could not set sniffer rule of mime type: %s\n", parseError.String()); } - -// NOTE: Icon-O-Matic writes the icon being saved as icon of the file anyway -// therefor, the following code is not needed, it is also not tested and I am -// spotting an error with SetIcon() -// // set document icon -// BResources* resources = AppResources(); -// // does not need to be freed (belongs to BApplication base) -// if (resources) { -// size_t size; -// const void* iconData = resources->LoadResource('VICN', "IOM:DOC_ICON", -// &size); -// if (iconData && size > 0) { -// memcpy(largeIcon.Bits(), iconData, size); -// if (mime.SetIcon(&largeIcon, B_LARGE_ICON) < B_OK) -// fprintf(stderr, "Could not set large icon of mime type.\n"); -// } else { -// fprintf(stderr, "Could not find icon in app resources (data: %p, -// "size: %ld).\n", iconData, size); -// } -// } else -// fprintf(stderr, "Could not find app resources.\n"); }