From ed67220e4b5ae6b3a1bc50f59bd52b5b1dea3a6b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 17 Dec 2024 10:25:15 +0100 Subject: [PATCH] Remove deprecated things and compatibility behaviours (#5591) --- crates/typst-library/src/foundations/mod.rs | 1 - crates/typst-library/src/foundations/ops.rs | 16 --- .../typst-library/src/foundations/styles.rs | 62 +----------- crates/typst-library/src/foundations/ty.rs | 18 ---- .../src/introspection/counter.rs | 46 +-------- .../typst-library/src/introspection/locate.rs | 92 ++---------------- .../typst-library/src/introspection/query.rs | 20 +--- .../typst-library/src/introspection/state.rs | 80 +-------------- crates/typst-library/src/layout/measure.rs | 22 +---- crates/typst-library/src/model/outline.rs | 11 +-- docs/changelog/0.11.0.md | 8 +- docs/changelog/0.12.0.md | 4 +- docs/changelog/earlier.md | 2 +- tests/ref/context-compatibility-locate.png | Bin 1523 -> 0 bytes tests/ref/context-compatibility-styling.png | Bin 380 -> 0 bytes tests/ref/outline-indent-no-numbering.png | Bin 4654 -> 2924 bytes tests/ref/outline-indent-numbering.png | Bin 10607 -> 7101 bytes tests/suite/foundations/context.typ | 40 -------- tests/suite/foundations/type.typ | 8 -- tests/suite/model/outline.typ | 4 - tests/suite/styling/fold.typ | 12 +-- 21 files changed, 35 insertions(+), 411 deletions(-) delete mode 100644 tests/ref/context-compatibility-locate.png delete mode 100644 tests/ref/context-compatibility-styling.png diff --git a/crates/typst-library/src/foundations/mod.rs b/crates/typst-library/src/foundations/mod.rs index 28f983186..d960a666c 100644 --- a/crates/typst-library/src/foundations/mod.rs +++ b/crates/typst-library/src/foundations/mod.rs @@ -119,7 +119,6 @@ pub(super) fn define(global: &mut Scope, inputs: Dict, features: &Features) { global.define_func::(); global.define_func::(); global.define_func::(); - global.define_func::