diff --git a/crates/engine/src/cmd/edit.rs b/crates/engine/src/cmd/edit.rs index 1a1df8e28..067e79109 100644 --- a/crates/engine/src/cmd/edit.rs +++ b/crates/engine/src/cmd/edit.rs @@ -781,7 +781,6 @@ enum What { Values, Formats, Comments, - Hyperlinks, Validation, AllExceptBorders, ColumnWidths, @@ -916,7 +915,6 @@ fn paste_special(s: &mut Session, p: &Json) -> Result { "values" => What::Values, "formats" => What::Formats, "comments" | "notes" => What::Comments, - "hyperlinks" | "links" => What::Hyperlinks, "validation" => What::Validation, "allExceptBorders" => What::AllExceptBorders, "columnWidths" => What::ColumnWidths, @@ -1073,7 +1071,7 @@ fn paste_special(s: &mut Session, p: &Json) -> Result { } } What::Formats => new.style = map_style(sc_cell.style, &mut cx.wb), - What::Comments | What::Hyperlinks | What::Validation | What::ColumnWidths => {} + What::Comments | What::Validation | What::ColumnWidths => {} } // Operations combine numbers with what is already there. if op != "none" @@ -1146,13 +1144,6 @@ fn paste_special(s: &mut Session, p: &Json) -> Result { cx.sheet_mut(dest_sheet)?.comments.insert(dest, cm); } } - // A cut moves the block's hyperlinks with it, so they must reach the - // destination too (only `edit.clear` touched them before). - What::Hyperlinks => { - if let Some(h) = src_sheet.hyperlinks.get(&sc).cloned() { - cx.sheet_mut(dest_sheet)?.hyperlinks.insert(dest, h); - } - } What::ColumnWidths => { if let Some(info) = src_sheet.cols.get(&sc.col).copied() { cx.sheet_mut(dest_sheet)?.cols.insert(dest.col, info);