mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
config: remove unused types and function
This commit is contained in:
@ -2186,24 +2186,6 @@ fn expandPaths(self: *Config, base: []const u8) !void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const ThemeDirType = enum {
|
|
||||||
user,
|
|
||||||
system,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub fn themeDir(alloc: std.mem.Allocator, type_: ThemeDirType) ?[]const u8 {
|
|
||||||
return switch (type_) {
|
|
||||||
.user => internal_os.xdg.config(alloc, .{ .subdir = "ghostty/themes" }) catch null,
|
|
||||||
.system => result: {
|
|
||||||
const resources_dir = global_state.resources_dir orelse break :result null;
|
|
||||||
break :result std.fs.path.join(alloc, &.{
|
|
||||||
resources_dir,
|
|
||||||
"themes",
|
|
||||||
}) catch null;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
fn loadTheme(self: *Config, theme: []const u8) !void {
|
fn loadTheme(self: *Config, theme: []const u8) !void {
|
||||||
// Find our theme file and open it. See the open function for details.
|
// Find our theme file and open it. See the open function for details.
|
||||||
const file: std.fs.File = (try themepkg.open(
|
const file: std.fs.File = (try themepkg.open(
|
||||||
|
Reference in New Issue
Block a user