JBR-7429 JCEF: refactor: remove unused code

GitOrigin-RevId: e9726b95e7e21b22fc647f9af6f73cb207f58706
This commit is contained in:
Vladimir Kharitonov
2024-08-07 20:05:57 +02:00
committed by intellij-monorepo-bot
parent 35ef00051e
commit 0994cb6ad2
3 changed files with 2 additions and 15 deletions

View File

@@ -91,7 +91,6 @@ public abstract class JBCefBrowserBase implements JBCefDisposable {
}
private static final Logger LOG = Logger.getInstance(JBCefBrowserBase.class);
private static final boolean IS_REMOTE_ENABLED = JBCefApp.isRemoteEnabled();
protected static final @NotNull String BLANK_URI = "about:blank";
private static final @NotNull Icon ERROR_PAGE_ICON = AllIcons.General.ErrorDialog;
@@ -349,19 +348,6 @@ public abstract class JBCefBrowserBase implements JBCefDisposable {
}, myCefBrowser);
}
private @NotNull CefBrowser createOsrBrowser(@NotNull JBCefOSRHandlerFactory factory,
@NotNull CefClient client,
@Nullable String url,
@Nullable CefRequestContext context,
// not-null parentBrowser creates a DevTools browser for it
@Nullable CefBrowser parentBrowser,
@Nullable Point inspectAt,
boolean isMouseWheelEventEnabled,
CefBrowserSettings settings) {
return CefOsrBrowserFactory.getInstance()
.createOsrBrowser(factory, client, url, context, parentBrowser, inspectAt, isMouseWheelEventEnabled, settings);
}
/**
* Creates the native browser.
* <p>

View File

@@ -96,6 +96,7 @@ class JBCefNativeOsrHandler extends JBCefOsrHandler implements CefNativeRenderHa
});
}
@Override
protected Dimension getCurrentFrameSize() {
SharedMemory.WithRaster frame = myCurrentFrame;
return frame == null ? null : new Dimension(frame.getWidth(), frame.getHeight());

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ui.jcef;
import com.intellij.openapi.util.registry.RegistryManager;