From f2093aef43b958711925704234cec5ae0224d8b4 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 10 Nov 2019 13:25:55 -0800 Subject: [PATCH] Remove io_chain_t::push_front It was unused. --- src/io.cpp | 5 ----- src/io.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/io.cpp b/src/io.cpp index 129044239..6bf0782b4 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -214,11 +214,6 @@ void io_chain_t::push_back(shared_ptr element) { std::vector >::push_back(std::move(element)); } -void io_chain_t::push_front(shared_ptr 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()); } diff --git a/src/io.h b/src/io.h index 79ea595de..0b18b0d18 100644 --- a/src/io.h +++ b/src/io.h @@ -333,7 +333,6 @@ class io_chain_t : public std::vector> { void remove(const shared_ptr &element); void push_back(shared_ptr element); - void push_front(shared_ptr element); void append(const io_chain_t &chain); shared_ptr get_io_for_fd(int fd) const;