Commit 6281d094 authored by Niels Möller's avatar Niels Möller
Browse files

* src/io.c (io_read_file): Deleted unused function.

Rev: src/io.c:1.192
Rev: src/io.h:1.105
parent c00bf212
......@@ -2162,17 +2162,6 @@ io_write_file(const char *fname, int flags, int mode,
block_size, c);
}
struct lsh_fd *
io_read_file(const char *fname,
struct exception_handler *e)
{
int fd = open(fname, O_RDONLY);
if (fd < 0)
return NULL;
return make_lsh_fd(fd, "read-only file", e);
}
void
close_fd(struct lsh_fd *fd)
{
......
......@@ -388,10 +388,6 @@ io_write_file(const char *fname, int flags,
struct lsh_callback *c,
struct exception_handler *e);
struct lsh_fd *
io_read_file(const char *fname,
struct exception_handler *e);
int
lsh_make_pipe(int *fds);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment