logisheets_controller 1.8.0

the core of LogiSheets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use logisheets_base::{NormalRange, RangeId, SheetId};

use crate::range_manager::ctx::RangeExecCtx;

use super::{RangeExecutor, RangeUpdateType};

pub fn delete_sheet<C>(exec_ctx: RangeExecutor, sheet: SheetId, _ctx: &C) -> RangeExecutor
where
    C: RangeExecCtx,
{
    let mut func =
        |_range: &NormalRange, _range_id: &RangeId| -> RangeUpdateType { RangeUpdateType::Removed };
    let result = exec_ctx.normal_range_update(&sheet, &mut func);
    result
}