From 57738e69810aee169198474ac1d17ee4d08951ac Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 20 Feb 2018 10:06:59 -0500 Subject: [PATCH] no longer support bool param for setHighlightMode --- atom/browser/api/atom_api_tray.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/atom/browser/api/atom_api_tray.cc b/atom/browser/api/atom_api_tray.cc index e40d7660eae..701a5e9ac70 100644 --- a/atom/browser/api/atom_api_tray.cc +++ b/atom/browser/api/atom_api_tray.cc @@ -39,18 +39,6 @@ struct Converter { 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; } };