Author: stippi Date: 2011-03-31 13:45:25 +0200 (Thu, 31 Mar 2011) New Revision: 41151 Changeset: https://dev.haiku-os.org/changeset/41151 Modified: haiku/trunk/src/apps/icon-o-matic/IconEditorApp.cpp Log: Removed some dead and broken code for setting a document icon. Modified: haiku/trunk/src/apps/icon-o-matic/IconEditorApp.cpp =================================================================== --- haiku/trunk/src/apps/icon-o-matic/IconEditorApp.cpp 2011-03-31 11:43:14 UTC (rev 41150) +++ haiku/trunk/src/apps/icon-o-matic/IconEditorApp.cpp 2011-03-31 11:45:25 UTC (rev 41151) @@ -757,25 +757,4 @@ 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"); }