no longer support bool param for setHighlightMode

This commit is contained in:
Shelley Vohr 2018-02-20 10:06:59 -05:00
parent 459a5e3a1f
commit 57738e6981
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -39,18 +39,6 @@ struct Converter<atom::TrayIcon::HighlightMode> {
return true;
}
}
// Support old boolean parameter
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
bool highlight;
if (ConvertFromV8(isolate, val, &highlight)) {
if (highlight)
*out = atom::TrayIcon::HighlightMode::SELECTION;
else
*out = atom::TrayIcon::HighlightMode::NEVER;
return true;
}
return false;
}
};