aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-19 10:59:43 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-19 10:59:43 -0800
commit98a17f4046f8098d04727f9cb1891d15a27ba13f (patch)
treef8c5d8bdce2988b5dfba132e41e601f287c2695d /io.cpp
parentf850c021b76d4f5b019a0646d9924f0771b6d3e5 (diff)
Remove some functions which were rendered trivial by xiaq's changes. Make io_file_t take its path directly. Make io_buffer_t no longer use a shared_ptr for its data.
Diffstat (limited to 'io.cpp')
-rw-r--r--io.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/io.cpp b/io.cpp
index dfda6e55..f6947cb2 100644
--- a/io.cpp
+++ b/io.cpp
@@ -135,7 +135,6 @@ io_buffer_t *io_buffer_t::create(bool is_input)
{
bool success = true;
io_buffer_t *buffer_redirect = new io_buffer_t(is_input ? 0 : 1, is_input);
- buffer_redirect->out_buffer_create();
if (exec_pipe(buffer_redirect->pipe_fd) == -1)
{
@@ -194,17 +193,6 @@ void io_chain_t::remove(const shared_ptr<const io_data_t> &element)
}
}
-void io_chain_t::duplicate_prepend(const io_chain_t &src)
-{
- /* Prepend a duplicate of src before this. */
- this->insert(this->begin(), src.begin(), src.end());
-}
-
-void io_chain_t::destroy()
-{
- this->clear();
-}
-
void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element)
{
list.remove(element);
@@ -227,16 +215,6 @@ void io_print(const io_chain_t &chain)
}
}
-void io_duplicate_prepend(const io_chain_t &src, io_chain_t &dst)
-{
- return dst.duplicate_prepend(src);
-}
-
-void io_chain_destroy(io_chain_t &chain)
-{
- chain.destroy();
-}
-
/* Return the last IO for the given fd */
shared_ptr<const io_data_t> io_chain_t::get_io_for_fd(int fd) const
{