aboutsummaryrefslogtreecommitdiff
path: root/src/gss.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gss.zig')
-rw-r--r--src/gss.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gss.zig b/src/gss.zig
index 9201ca6..12b3b46 100644
--- a/src/gss.zig
+++ b/src/gss.zig
@@ -6,7 +6,6 @@ pub fn Node(T: type) type {
parents: *std.ArrayList(*Self),
state: T,
- is_toplevel: bool = false,
pub fn init(state: T, allocator: std.mem.Allocator) !Self {
const parents = try allocator.create(std.ArrayList(*Self));
@@ -22,7 +21,6 @@ pub fn Node(T: type) type {
return Self {
.parents = self.parents,
.state = state,
- .is_toplevel = self.is_toplevel,
};
}
@@ -76,7 +74,6 @@ pub fn Graph(T: type) type {
self.number_of_nodes += 1;
const node = try self.allocator.create(Node(T));
node.* = try Node(T).init(state, self.allocator);
- node.is_toplevel = true;
return node;
}