Skip to content

Commit

Permalink
Drop ManagerExt::unlisten it's already on the tauri::Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed May 1, 2024
1 parent fde6f0b commit 9dd8dca
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/manager_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pub trait ManagerExt<R: Runtime>: tauri::Manager<R> {
fn once<F>(&self, event: impl Into<String>, handler: F) -> EventId
where
F: FnOnce(Event) + Send + 'static;

fn unlisten(&self, id: EventId);
}

impl<R: Runtime> ManagerExt<R> for tauri::App<R> {
Expand All @@ -30,10 +28,6 @@ impl<R: Runtime> ManagerExt<R> for tauri::App<R> {
{
self.once(event, handler)
}

fn unlisten(&self, id: EventId) {
self.unlisten(id)
}
}

impl<R: Runtime> ManagerExt<R> for tauri::AppHandle<R> {
Expand All @@ -50,10 +44,6 @@ impl<R: Runtime> ManagerExt<R> for tauri::AppHandle<R> {
{
self.once(event, handler)
}

fn unlisten(&self, id: EventId) {
self.unlisten(id)
}
}

impl<R: Runtime> ManagerExt<R> for tauri::Webview<R> {
Expand All @@ -70,10 +60,6 @@ impl<R: Runtime> ManagerExt<R> for tauri::Webview<R> {
{
self.once(event, handler)
}

fn unlisten(&self, id: EventId) {
self.unlisten(id)
}
}

impl<R: Runtime> ManagerExt<R> for tauri::WebviewWindow<R> {
Expand All @@ -90,10 +76,6 @@ impl<R: Runtime> ManagerExt<R> for tauri::WebviewWindow<R> {
{
self.once(event, handler)
}

fn unlisten(&self, id: EventId) {
self.unlisten(id)
}
}

impl<R: Runtime> ManagerExt<R> for tauri::Window<R> {
Expand All @@ -110,8 +92,4 @@ impl<R: Runtime> ManagerExt<R> for tauri::Window<R> {
{
self.once(event, handler)
}

fn unlisten(&self, id: EventId) {
self.unlisten(id)
}
}

0 comments on commit 9dd8dca

Please sign in to comment.