mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 12:52:29 +08:00
Remove io_chain_t::push_front
It was unused.
This commit is contained in:
parent
87f4f33600
commit
f2093aef43
|
@ -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));
|
||||
}
|
||||
|
||||
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) {
|
||||
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 push_back(shared_ptr<io_data_t> element);
|
||||
void push_front(shared_ptr<io_data_t> element);
|
||||
void append(const io_chain_t &chain);
|
||||
|
||||
shared_ptr<const io_data_t> get_io_for_fd(int fd) const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user