summaryrefslogtreecommitdiff
path: root/src/file_watch.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_watch.zig')
-rw-r--r--src/file_watch.zig13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/file_watch.zig b/src/file_watch.zig
index ea8115bc..a75383e1 100644
--- a/src/file_watch.zig
+++ b/src/file_watch.zig
@@ -71,11 +71,7 @@ pub const Watch = struct {
/// Sharing the table also shares directory descriptors correctly when a user
/// happens to open that .zon as an ordinary document.
pub const theme_slot = pardes.MAX_PANES;
-/// After it, one slot a post chain file (ShaderBuild.zig): marked only so
-/// a save there wakes the host, which has the files read again; no
-/// generation of theirs is kept here.
-pub const shader_slot = theme_slot + 1;
-pub const Table = [shader_slot + pardes.config.Runtime.Post.max]?Watch;
+pub const Table = [theme_slot + 1]?Watch;
/// Whether this OS has a watcher at all. Off it every entry point below
/// returns the inert answer: `watchPane` installs nothing, so `watches` stays
@@ -424,13 +420,6 @@ pub fn unwatchAll(fd: c_int, watches: *Table) void {
for (0..pardes.MAX_PANES) |id| watchPane(fd, watches, @intCast(id), null, 0, .{ .text = 0 });
}
-/// Mark the post chain files' directories, one slot each, dropping the
-/// marks of files no longer in it.
-pub fn watchShaders(fd: c_int, watches: *Table, paths: []const []const u8) void {
- for (0..pardes.config.Runtime.Post.max) |i|
- watchPane(fd, watches, shader_slot + i, if (i < paths.len) paths[i] else null, 0, .{ .text = 0 });
-}
-
/// Reconcile one marked pane. A true result requests an immediate second pass:
/// the PDF pathname changed between the stat before MuPDF reopened it and the
/// stat after, so committing either identity would lose a generation.