Skip to content
Snippets Groups Projects
Commit 356d6909 authored by Avi Kivity's avatar Avi Kivity
Browse files

file: remove unused make_file() implementations


Everyone switched to the nifty variadic type.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent b086d996
No related branches found
No related tags found
No related merge requests found
......@@ -55,22 +55,6 @@ make_file(args&&... a)
return fileref(fp, false);
}
inline
fileref make_file(unsigned flags, filetype_t type, void *opaque,
struct fileops *ops)
{
return make_file<file>(flags, type, opaque, ops);
}
template <typename T>
fileref make_file(unsigned flags, filetype_t type, std::unique_ptr<T>&& opaque,
struct fileops *ops)
{
auto f = make_file<file>(flags, type, opaque.get(), ops);
opaque.release();
return f;
}
class fdesc {
public:
explicit fdesc() : _fd(-1) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment