input/{file,archive}: remove the dummy InputPlugin instances

These have no use, exception for creating an artificial dependency
from input_plugins[] to all archive plugins.
This commit is contained in:
Max Kellermann
2018-01-20 19:07:34 +01:00
parent e0a09dbd69
commit 27e4656515
6 changed files with 6 additions and 46 deletions

View File

@@ -75,15 +75,6 @@ OpenFileInputStream(Path path,
mutex, cond);
}
static InputStreamPtr
input_file_open(gcc_unused const char *filename,
gcc_unused Mutex &mutex, gcc_unused Cond &cond)
{
/* dummy method; use OpenFileInputStream() instead */
return nullptr;
}
void
FileInputStream::Seek(offset_type new_offset)
{
@@ -108,10 +99,3 @@ FileInputStream::Read(void *ptr, size_t read_size)
offset += nbytes;
return nbytes;
}
const InputPlugin input_plugin_file = {
"file",
nullptr,
nullptr,
input_file_open,
};