diff options
author | DLFW <daniel@llin.info> | 2023-05-07 22:56:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 16:56:04 -0400 |
commit | 95d304fb04a87fbb2534759177f6cd27f5816143 (patch) | |
tree | 996bb5542be873c5208aaab10696278d3c5507af /src | |
parent | daf25df2692d2aa910af87886061beb0107fd8f1 (diff) |
Cleanup preview.sh template (#285)
* Cleanup preview.sh template
Removed ranger residuals and dead code from the preview.sh script and
the logic that invokes it.
* Remove --[x/y]-coord arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/preview/preview_file.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/preview/preview_file.rs b/src/preview/preview_file.rs index 05f389e..d115480 100644 --- a/src/preview/preview_file.rs +++ b/src/preview/preview_file.rs @@ -66,15 +66,11 @@ impl Background { let layout_rect = layout[2]; let preview_width = layout_rect.width; let preview_height = layout_rect.height; - let preview_x_coord = layout_rect.x; - let preview_y_coord = layout_rect.y; if preview_width == 0 || preview_height == 0 { return; } - let image_cache = 0; - let script = script.clone(); let event_tx = context.clone_event_tx(); context @@ -92,12 +88,6 @@ impl Background { .arg(preview_width.to_string()) .arg("--preview-height") .arg(preview_height.to_string()) - .arg("--x-coord") - .arg(preview_x_coord.to_string()) - .arg("--y-coord") - .arg(preview_y_coord.to_string()) - .arg("--image-cache") - .arg(image_cache.to_string()) .output(); match res { Ok(output) => { |