mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Remove io_duplicate, which is no longer used
This commit is contained in:
parent
ac023f7588
commit
a79d3c680c
2 changed files with 0 additions and 14 deletions
11
io.cpp
11
io.cpp
|
@ -166,12 +166,6 @@ void io_chain_t::remove(const shared_ptr<const io_data_t> &element)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
io_chain_t io_chain_t::duplicate() const
|
|
||||||
{
|
|
||||||
io_chain_t result = *this;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void io_chain_t::duplicate_prepend(const io_chain_t &src)
|
void io_chain_t::duplicate_prepend(const io_chain_t &src)
|
||||||
{
|
{
|
||||||
/* Prepend a duplicate of src before this. */
|
/* Prepend a duplicate of src before this. */
|
||||||
|
@ -188,11 +182,6 @@ void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element)
|
||||||
list.remove(element);
|
list.remove(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
io_chain_t io_duplicate(const io_chain_t &chain)
|
|
||||||
{
|
|
||||||
return chain.duplicate();
|
|
||||||
}
|
|
||||||
|
|
||||||
void io_print(const io_chain_t &chain)
|
void io_print(const io_chain_t &chain)
|
||||||
{
|
{
|
||||||
if (chain.empty())
|
if (chain.empty())
|
||||||
|
|
3
io.h
3
io.h
|
@ -135,9 +135,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element);
|
void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element);
|
||||||
|
|
||||||
/** Make a copy of the specified chain of redirections. Uses operator new. */
|
|
||||||
io_chain_t io_duplicate(const io_chain_t &chain);
|
|
||||||
|
|
||||||
/** Return a shallow copy of the specified chain of redirections that contains only the applicable redirections. That is, if there's multiple redirections for the same fd, only the second one is included. */
|
/** Return a shallow copy of the specified chain of redirections that contains only the applicable redirections. That is, if there's multiple redirections for the same fd, only the second one is included. */
|
||||||
io_chain_t io_unique(const io_chain_t &chain);
|
io_chain_t io_unique(const io_chain_t &chain);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue