Move fd flow code into flow.c

This commit is contained in:
Ian Gulliver
2016-03-02 19:16:23 -08:00
parent 896874e9d7
commit 20bc50795d
5 changed files with 12 additions and 12 deletions

View File

@@ -134,13 +134,6 @@ void file_cleanup() {
}
}
// TODO: this code probably belongs elsewhere
void file_fd_new(int fd, struct flow *flow, void *passthrough) {
// TODO: log error
flow_hello(fd, flow, passthrough);
flow->new(fd, passthrough, NULL);
}
void file_read_new(char *path, struct flow *flow, void *passthrough) {
file_new(path, O_RDONLY, flow, passthrough);
}