From 16d5daa1e1be24cda75667c88b10d8e33331fa52 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 12:58:43 +0200 Subject: [PATCH] remove extra dependencies --- .../window/tab/item/page/content/text/gemini/reader.rs | 1 - .../window/tab/item/page/content/text/gemini/reader/widget.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index ac49e3c1..3900d6a7 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -317,7 +317,6 @@ impl Reader { // Init widget let widget = Rc::new(Widget::new( - &window_action, &buffer, &primary_button_controller, &middle_button_controller, diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs index ae9c5574..d4ecb5d1 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget.rs @@ -1,6 +1,3 @@ -use std::rc::Rc; - -use super::WindowAction; use gtk::{ prelude::WidgetExt, EventControllerMotion, GestureClick, TextBuffer, TextView, WrapMode, }; @@ -16,7 +13,6 @@ impl Widget { /// Create new `Self` pub fn new( - action: &WindowAction, buffer: &TextBuffer, primary_button_controller: &GestureClick, middle_button_controller: &GestureClick,