Removed feature cfg from examples

This commit is contained in:
Sebastian Imlay 2022-08-14 16:49:49 -04:00
parent d0d99df147
commit 466d64542e

View file

@ -22,7 +22,6 @@ impl AppDelegate for BasicApp {
#[derive(Default)]
pub struct WebViewInstance;
#[cfg(feature = "webview")]
impl WebViewDelegate for WebViewInstance {
fn on_custom_protocol_request(&self, path: &str) -> Option<Vec<u8>> {
let requested_asset_path = path.replace("cacao://", "");
@ -63,11 +62,9 @@ impl WebViewDelegate for WebViewInstance {
}
struct AppWindow {
#[cfg(feature = "webview")]
content: WebView<WebViewInstance>
}
#[cfg(feature = "webview")]
impl AppWindow {
pub fn new() -> Self {
let mut webview_config = WebViewConfig::default();