summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/src/window.rs8
-rw-r--r--winit/src/program.rs5
2 files changed, 0 insertions, 13 deletions
diff --git a/runtime/src/window.rs b/runtime/src/window.rs
index e82d4505..9be61315 100644
--- a/runtime/src/window.rs
+++ b/runtime/src/window.rs
@@ -73,9 +73,6 @@ pub enum Action {
/// Get the current [`Mode`] of the window.
GetMode(Id, oneshot::Sender<Mode>),
- /// Change the title of the window.
- ChangeTitle(Id, String),
-
/// Toggle the window to maximized or back
ToggleMaximize(Id),
@@ -388,11 +385,6 @@ pub fn change_level<T>(id: Id, level: Level) -> Task<T> {
task::effect(crate::Action::Window(Action::ChangeLevel(id, level)))
}
-/// Changes the title of the window.
-pub fn change_title<T>(id: Id, title: String) -> Task<T> {
- task::effect(crate::Action::Window(Action::ChangeTitle(id, title)))
-}
-
/// Set the inner maximum size of the window.
pub fn set_max_size<T>(id: Id, size: Option<Size>) -> Task<T> {
task::effect(crate::Action::Window(Action::SetMaxSize(id, size)))
diff --git a/winit/src/program.rs b/winit/src/program.rs
index 58f4d96d..2bb0f910 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1321,11 +1321,6 @@ fn run_action<P, C>(
}));
}
}
- window::Action::ChangeTitle(id, title) => {
- if let Some(window) = window_manager.get_mut(id) {
- window.raw.set_title(&title);
- }
- }
window::Action::SetResizable(id, resizable) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_resizable(resizable);