mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-03 16:48:45 +00:00
Remove io_chain_t::push_front
It was unused.
This commit is contained in:
parent
87f4f33600
commit
f2093aef43
2 changed files with 0 additions and 6 deletions
|
@ -214,11 +214,6 @@ void io_chain_t::push_back(shared_ptr<io_data_t> element) {
|
||||||
std::vector<shared_ptr<io_data_t> >::push_back(std::move(element));
|
std::vector<shared_ptr<io_data_t> >::push_back(std::move(element));
|
||||||
}
|
}
|
||||||
|
|
||||||
void io_chain_t::push_front(shared_ptr<io_data_t> element) {
|
|
||||||
assert(element.get() != nullptr);
|
|
||||||
this->insert(this->begin(), std::move(element));
|
|
||||||
}
|
|
||||||
|
|
||||||
void io_chain_t::append(const io_chain_t &chain) {
|
void io_chain_t::append(const io_chain_t &chain) {
|
||||||
this->insert(this->end(), chain.begin(), chain.end());
|
this->insert(this->end(), chain.begin(), chain.end());
|
||||||
}
|
}
|
||||||
|
|
1
src/io.h
1
src/io.h
|
@ -333,7 +333,6 @@ class io_chain_t : public std::vector<shared_ptr<io_data_t>> {
|
||||||
|
|
||||||
void remove(const shared_ptr<const io_data_t> &element);
|
void remove(const shared_ptr<const io_data_t> &element);
|
||||||
void push_back(shared_ptr<io_data_t> element);
|
void push_back(shared_ptr<io_data_t> element);
|
||||||
void push_front(shared_ptr<io_data_t> element);
|
|
||||||
void append(const io_chain_t &chain);
|
void append(const io_chain_t &chain);
|
||||||
|
|
||||||
shared_ptr<const io_data_t> get_io_for_fd(int fd) const;
|
shared_ptr<const io_data_t> get_io_for_fd(int fd) const;
|
||||||
|
|
Loading…
Reference in a new issue