summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/application.rs15
-rw-r--r--src/lib.rs5
-rw-r--r--src/sandbox.rs2
3 files changed, 5 insertions, 17 deletions
diff --git a/src/application.rs b/src/application.rs
index 0c30a554..af04215e 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -1,5 +1,5 @@
use crate::window;
-use crate::{Color, Command, Element, Executor, Menu, Settings, Subscription};
+use crate::{Color, Command, Element, Executor, Settings, Subscription};
/// An interactive cross-platform application.
///
@@ -97,7 +97,7 @@ pub trait Application: Sized {
type Executor: Executor;
/// The type of __messages__ your [`Application`] will produce.
- type Message: std::fmt::Debug + Clone + Send;
+ type Message: std::fmt::Debug + Send;
/// The data needed to initialize your [`Application`].
type Flags;
@@ -185,13 +185,6 @@ pub trait Application: Sized {
false
}
- /// Returns the current system [`Menu`] of the [`Application`].
- ///
- /// By default, it returns an empty [`Menu`].
- fn menu(&self) -> Menu<Self::Message> {
- Menu::new()
- }
-
/// Runs the [`Application`].
///
/// On native platforms, this method will take control of the current thread
@@ -293,10 +286,6 @@ where
fn should_exit(&self) -> bool {
self.0.should_exit()
}
-
- fn menu(&self) -> Menu<Self::Message> {
- self.0.menu()
- }
}
#[cfg(target_arch = "wasm32")]
diff --git a/src/lib.rs b/src/lib.rs
index e4f00c07..3d4b96f1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -246,7 +246,6 @@ pub use sandbox::Sandbox;
pub use settings::Settings;
pub use runtime::{
- futures, menu, Align, Background, Color, Command, Font,
- HorizontalAlignment, Length, Menu, Point, Rectangle, Size, Subscription,
- Vector, VerticalAlignment,
+ futures, Align, Background, Color, Command, Font, HorizontalAlignment,
+ Length, Point, Rectangle, Size, Subscription, Vector, VerticalAlignment,
};
diff --git a/src/sandbox.rs b/src/sandbox.rs
index a0bb316e..1b23196f 100644
--- a/src/sandbox.rs
+++ b/src/sandbox.rs
@@ -87,7 +87,7 @@ use crate::{
/// ```
pub trait Sandbox {
/// The type of __messages__ your [`Sandbox`] will produce.
- type Message: std::fmt::Debug + Clone + Send;
+ type Message: std::fmt::Debug + Send;
/// Initializes the [`Sandbox`].
///