terminal: unused decls

pull/9342/head
Mitchell Hashimoto 2025-10-24 15:20:12 -07:00
parent e49694439c
commit a85ad0e4f8
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 4 additions and 15 deletions

View File

@ -1841,10 +1841,7 @@ pub fn Stream(comptime Handler: type) type {
try self.handler.vt(.active_status_display, display);
},
else => if (@hasDecl(T, "csiUnimplemented"))
try self.handler.csiUnimplemented(input)
else
log.warn("unimplemented CSI action: {f}", .{input}),
else => log.warn("unimplemented CSI action: {f}", .{input}),
}
}
@ -1959,13 +1956,8 @@ pub fn Stream(comptime Handler: type) type {
},
}
// Fall through for when we don't have a handler.
if (@hasDecl(T, "oscUnimplemented")) {
try self.handler.oscUnimplemented(cmd);
} else {
log.warn("unimplemented OSC command: {s}", .{@tagName(cmd)});
}
}
inline fn configureCharset(
self: *Self,
@ -2204,14 +2196,11 @@ pub fn Stream(comptime Handler: type) type {
else => log.warn("unimplemented setMode: {f}", .{action}),
},
else => if (@hasDecl(T, "escUnimplemented"))
try self.handler.escUnimplemented(action)
else
log.warn("unimplemented ESC action: {f}", .{action}),
// Sets ST (string terminator). We don't have to do anything
// because our parser always accepts ST.
'\\' => {},
else => log.warn("unimplemented ESC action: {f}", .{action}),
}
}
};