summaryrefslogtreecommitdiff
path: root/src/colors.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:02:30 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:20:23 -0300
commitd2129a6e2c6348ee9630c5b5918fbcfadf4411fe (patch)
tree0ee85d9856dc5720a6371da5645b63779835dcc8 /src/colors.zig
parent8b0b342f300c7ccf6b71994965cc03244545db04 (diff)
downloadpardes-d2129a6e2c6348ee9630c5b5918fbcfadf4411fe.tar.gz
pardes-d2129a6e2c6348ee9630c5b5918fbcfadf4411fe.zip
drawing: dead code goes: colors.carryTheme and Motion.speed (no caller anywhere), animation.progress (only its own tests called it), Layer.pointAt (never called), Glide.kick (one caller, the line now), a stale first column header in the frame dump, panes.zig's unused vaxis import
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/colors.zig')
-rw-r--r--src/colors.zig13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/colors.zig b/src/colors.zig
index 9c666d9b..3d4bed8c 100644
--- a/src/colors.zig
+++ b/src/colors.zig
@@ -803,19 +803,6 @@ pub fn loadThemeFile(p: *Pardes, generation: u32, bytes: []const u8, animate: bo
return true;
}
-/// A Restore's: the theme `old` showed, its loaded theme file's included,
-/// for one that is to load a ThemeFile and keep this if it fails;
-/// `index` too when the dump names no Theme.
-pub fn carryTheme(p: *Pardes, old: *const Pardes, index: bool) !void {
- if (index) p.settings.theme = old.settings.theme;
- const t = old.custom_theme orelse return;
- var copy = t;
- copy.name = try p.gpa.dupe(u8, t.name);
- if (p.custom_theme) |mine| p.gpa.free(mine.name);
- p.custom_theme = copy;
- _ = p.theme_file_loaded.set(old.theme_file_loaded.get());
-}
-
pub fn finishThemeInitialization(p: *Pardes) void {
p.chrome_animation.snap(ChromeTheme.fromTheme(p.theme()));
p.animate_theme_changes = true;