Skip to content

Commit b89fe86

Browse files
authored
Merge pull request electron#13050 from electron/3.0.0-deprecations
chore: removal of 3.0.0 deprecations
2 parents cb9ab21 + d40cce9 commit b89fe86

32 files changed

+68
-413
lines changed

atom/browser/api/atom_api_screen.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ void Screen::BuildPrototype(v8::Isolate* isolate,
145145
.SetMethod("dipToScreenPoint", &display::win::ScreenWin::DIPToScreenPoint)
146146
.SetMethod("screenToDipRect", &ScreenToDIPRect)
147147
.SetMethod("dipToScreenRect", &DIPToScreenRect)
148-
#endif
149-
#if defined(OS_MACOSX)
150-
.SetMethod("getMenuBarHeight", &Screen::getMenuBarHeight)
151148
#endif
152149
.SetMethod("getDisplayMatching", &Screen::GetDisplayMatching);
153150
}

atom/browser/api/atom_api_screen.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ class Screen : public mate::EventEmitter<Screen>,
4040
display::Display GetDisplayNearestPoint(const gfx::Point& point);
4141
display::Display GetDisplayMatching(const gfx::Rect& match_rect);
4242

43-
#if defined(OS_MACOSX)
44-
int getMenuBarHeight();
45-
#endif
46-
4743
// display::DisplayObserver:
4844
void OnDisplayAdded(const display::Display& new_display) override;
4945
void OnDisplayRemoved(const display::Display& old_display) override;

atom/browser/api/atom_api_screen_mac.mm

Lines changed: 0 additions & 19 deletions
This file was deleted.

atom/browser/api/atom_api_session.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void Session::BuildPrototype(v8::Isolate* isolate,
821821
.SetMethod("setDownloadPath", &Session::SetDownloadPath)
822822
.SetMethod("enableNetworkEmulation", &Session::EnableNetworkEmulation)
823823
.SetMethod("disableNetworkEmulation", &Session::DisableNetworkEmulation)
824-
.SetMethod("_setCertificateVerifyProc", &Session::SetCertVerifyProc)
824+
.SetMethod("setCertificateVerifyProc", &Session::SetCertVerifyProc)
825825
.SetMethod("setPermissionRequestHandler",
826826
&Session::SetPermissionRequestHandler)
827827
.SetMethod("clearHostResolverCache", &Session::ClearHostResolverCache)

atom/browser/api/atom_api_tray.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ struct Converter<atom::TrayIcon::HighlightMode> {
4040
return true;
4141
}
4242
}
43-
44-
bool highlight;
45-
if (ConvertFromV8(isolate, val, &highlight)) {
46-
if (highlight)
47-
*out = atom::TrayIcon::HighlightMode::SELECTION;
48-
else
49-
*out = atom::TrayIcon::HighlightMode::NEVER;
50-
return true;
51-
}
52-
5343
return false;
5444
}
5545
};

atom/browser/api/atom_api_web_contents.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,15 +1296,9 @@ void WebContents::OpenDevTools(mate::Arguments* args) {
12961296
state = "detach";
12971297
}
12981298
if (args && args->Length() == 1) {
1299-
bool detach = false;
13001299
mate::Dictionary options;
13011300
if (args->GetNext(&options)) {
13021301
options.Get("mode", &state);
1303-
1304-
// TODO(kevinsawicki) Remove in 2.0
1305-
options.Get("detach", &detach);
1306-
if (state.empty() && detach)
1307-
state = "detach";
13081302
}
13091303
}
13101304
managed_web_contents()->SetDockState(state);

atom/browser/native_window_views_win.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {
143143
std::string command = AppCommandToString(command_id);
144144
NotifyWindowExecuteWindowsCommand(command);
145145

146-
if (command_id == APPCOMMAND_MEDIA_PLAY_PAUSE)
147-
// FIXME(htk3): Remove media-play_pause in 3.0
148-
NotifyWindowExecuteWindowsCommand("media-play_pause");
149-
150146
return false;
151147
}
152148

atom/browser/web_contents_preferences.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void WebContentsPreferences::AppendCommandLineSwitches(
232232
}
233233

234234
// Enable blink features.
235-
if (dict_.GetString(options::kBlinkFeatures, &s))
235+
if (dict_.GetString(options::kEnableBlinkFeatures, &s))
236236
command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures, s);
237237

238238
// Disable blink features.

atom/common/api/atom_api_native_image.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,6 @@ mate::Handle<NativeImage> NativeImage::CreateFromBuffer(
517517
options.Get("width", &width);
518518
options.Get("height", &height);
519519
options.Get("scaleFactor", &scale_factor);
520-
} else {
521-
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
522-
args->GetNext(&scale_factor);
523520
}
524521

525522
gfx::ImageSkia image_skia;

atom/common/options_switches.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ const char kOpenerID[] = "openerId";
127127
const char kScrollBounce[] = "scrollBounce";
128128

129129
// Enable blink features.
130-
// TODO(kevinsawicki) Rename to enableBlinkFeatures in 2.0
131-
const char kBlinkFeatures[] = "blinkFeatures";
130+
const char kEnableBlinkFeatures[] = "enableBlinkFeatures";
132131

133132
// Disable blink features.
134133
const char kDisableBlinkFeatures[] = "disableBlinkFeatures";

0 commit comments

Comments
 (0)