drop extra construction not in use

This commit is contained in:
yggverse 2024-10-13 06:17:59 +03:00
parent fb44222e4e
commit 58c3d56cd4

View File

@ -10,7 +10,7 @@ use gtk::{
gio::SimpleAction, gio::SimpleAction,
glib::{GString, TimeZone, Uri}, glib::{GString, TimeZone, Uri},
prelude::{ActionExt, TextBufferExt, TextBufferExtManual, TextViewExt, ToVariant}, prelude::{ActionExt, TextBufferExt, TextBufferExtManual, TextViewExt, ToVariant},
EventControllerMotion, GestureClick, TextBuffer, TextTag, TextView, TextWindowType, WrapMode, EventControllerMotion, GestureClick, TextBuffer, TextTag, TextView, WrapMode,
}; };
use std::{collections::HashMap, sync::Arc}; use std::{collections::HashMap, sync::Arc};
@ -137,7 +137,6 @@ impl Reader {
let action_page_open = action_page_open.clone(); let action_page_open = action_page_open.clone();
let gobject = widget.gobject().clone(); let gobject = widget.gobject().clone();
move |_, _, x, y| { move |_, _, x, y| {
gobject.window_to_buffer_coords(TextWindowType::Widget, x as i32, y as i32);
if let Some(iter) = gobject.iter_at_location(x as i32, y as i32) { if let Some(iter) = gobject.iter_at_location(x as i32, y as i32) {
for tag in iter.tags() { for tag in iter.tags() {
if let Some(uri) = links.get(&tag) { if let Some(uri) = links.get(&tag) {