aboutsummaryrefslogtreecommitdiff
path: root/src/field.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-12-04 04:06:47 +0100
committerJulien Dessaux2022-12-04 04:06:47 +0100
commitb373cbffa11f5f1f86f15f0be29b21993b42a5d7 (patch)
treebab595392417cab23148ba46994d3607ca54cebc /src/field.zig
parentBegan writing a debugging tui (diff)
downloadzigfunge98-b373cbffa11f5f1f86f15f0be29b21993b42a5d7.tar.gz
zigfunge98-b373cbffa11f5f1f86f15f0be29b21993b42a5d7.tar.bz2
zigfunge98-b373cbffa11f5f1f86f15f0be29b21993b42a5d7.zip
Improved tui debugger
Diffstat (limited to '')
-rw-r--r--src/field.zig9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/field.zig b/src/field.zig
index 03f9da3..0130848 100644
--- a/src/field.zig
+++ b/src/field.zig
@@ -69,12 +69,6 @@ const Line = struct {
if (x >= l.x and x < l.x + @intCast(i64, l.len())) return l.data.items[@intCast(usize, x - @intCast(i64, l.x))];
return ' ';
}
- pub inline fn getData(l: *Line) std.ArrayList(i64) {
- return l.data;
- }
- pub inline fn getX(l: *Line) i64 {
- return l.x;
- }
fn init(allocator: std.mem.Allocator) !*Line {
var l = try allocator.create(Line);
l.allocator = allocator;
@@ -250,9 +244,6 @@ pub const Field = struct {
if (y >= f.y and y < f.y + @intCast(i64, f.lines.items.len)) return f.lines.items[@intCast(usize, y - @intCast(i64, f.y))].get(x);
return ' ';
}
- pub fn getLine(f: *Field, y: usize) *Line {
- return f.lines.items[y];
- }
pub fn getSize(f: Field) [4]i64 {
return [4]i64{ f.x, f.y, @intCast(i64, f.lx), @intCast(i64, f.lines.items.len) };
}