diff --git a/kittens/dnd/drag.go b/kittens/dnd/drag.go index c344828a1..a61898142 100644 --- a/kittens/dnd/drag.go +++ b/kittens/dnd/drag.go @@ -54,10 +54,8 @@ type drag_status struct { } func find_drag_image(drag_sources map[string]*drag_source) image.Image { - all_paths := []string{} for mime, ds := range drag_sources { if ds.path != "" { - all_paths = append(all_paths, ds.path) if strings.HasPrefix(mime, "image/") { q, err := imaging.Open(ds.path) if err == nil { @@ -72,7 +70,6 @@ func find_drag_image(drag_sources map[string]*drag_source) image.Image { for _, path := range q { if path != "" { uri_list = append(uri_list, path) - all_paths = append(all_paths, path) } } } @@ -83,10 +80,6 @@ func find_drag_image(drag_sources map[string]*drag_source) image.Image { return q } } - for _, path := range all_paths { - _ = path - // TODO: Try to generate an image based preview using the machinery from the choose-files kitten - } return nil }