Remove io_chain_t::push_front

It was unused.
This commit is contained in:
ridiculousfish 2019-11-10 13:25:55 -08:00
parent 87f4f33600
commit f2093aef43
2 changed files with 0 additions and 6 deletions

View File

@ -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());
}

View File

@ -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;