Removed dead code (CID 2858).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1c3b1649cd
commit
73b0cf2c46
@ -367,11 +367,9 @@ StyledTextImporter::_AddStyle(Icon *icon, text_run *run)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user