Author: stippi Date: 2011-04-04 17:47:16 +0200 (Mon, 04 Apr 2011) New Revision: 41183 Changeset: https://dev.haiku-os.org/changeset/41183 Modified: haiku/trunk/src/apps/icon-o-matic/import_export/styled_text/StyledTextImporter.cpp Log: Removed dead code (CID 2858). Modified: haiku/trunk/src/apps/icon-o-matic/import_export/styled_text/StyledTextImporter.cpp =================================================================== --- haiku/trunk/src/apps/icon-o-matic/import_export/styled_text/StyledTextImporter.cpp 2011-04-04 15:36:23 UTC (rev 41182) +++ haiku/trunk/src/apps/icon-o-matic/import_export/styled_text/StyledTextImporter.cpp 2011-04-04 15:47:16 UTC (rev 41183) @@ -367,11 +367,9 @@ if (!run) return EINVAL; rgb_color color = run->color; - Style* style = new (nothrow) Style(color); - if (!style) { - delete style; + Style* style = new(std::nothrow) Style(color); + if (style == NULL) return B_NO_MEMORY; - } char name[30]; sprintf(name, B_TRANSLATE("Color (#%02x%02x%02x)"), color.red, color.green, color.blue);