From: Richard Kreckel Date: Thu, 17 Dec 2015 23:06:31 +0000 (+0100) Subject: Remove expairseq::construct_from_2_ex_via_exvector() member function. X-Git-Tag: release_1-7-0~7^2~31 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=f4bae27a4390712315e0317fd9e954299341933d Remove expairseq::construct_from_2_ex_via_exvector() member function. This function is much slower than the optimized construct_from_2_ex() member function, which explains why it wasn't used. --- diff --git a/ginac/expairseq.cpp b/ginac/expairseq.cpp index 55fa311b..11da7749 100644 --- a/ginac/expairseq.cpp +++ b/ginac/expairseq.cpp @@ -599,12 +599,6 @@ bool expairseq::can_make_flat(const expair &p) const // non-virtual functions in this class ////////// -void expairseq::construct_from_2_ex_via_exvector(const ex &lh, const ex &rh) -{ - const exvector v = {lh, rh}; - construct_from_exvector(std::move(v)); -} - void expairseq::construct_from_2_ex(const ex &lh, const ex &rh) { if (typeid(ex_to(lh)) == typeid(*this)) { diff --git a/ginac/expairseq.h b/ginac/expairseq.h index f0a0b4e6..663b93ce 100644 --- a/ginac/expairseq.h +++ b/ginac/expairseq.h @@ -104,7 +104,6 @@ protected: protected: void do_print(const print_context & c, unsigned level) const; void do_print_tree(const print_tree & c, unsigned level) const; - void construct_from_2_ex_via_exvector(const ex & lh, const ex & rh); void construct_from_2_ex(const ex & lh, const ex & rh); void construct_from_2_expairseq(const expairseq & s1, const expairseq & s2);