From d40f20dfad9bdbeb678240f65916cf1e35c6bd1d Mon Sep 17 00:00:00 2001 From: SleepiCaffeine Date: Sat, 24 Jun 2023 00:18:38 +0300 Subject: [PATCH] Removed unnecessary constructors --- Data Structures/double_node.hpp | 48 ++------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/Data Structures/double_node.hpp b/Data Structures/double_node.hpp index e9a7890..44d0dc9 100644 --- a/Data Structures/double_node.hpp +++ b/Data Structures/double_node.hpp @@ -41,8 +41,6 @@ class double_node { * @see double_node(double_node* const nd) * @see double_node(double_node& const nd) * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node() : next{nullptr}, prev{nullptr} { }; @@ -55,8 +53,6 @@ class double_node { * @see double_node(double_node* const nd) * @see double_node(double_node& const nd) * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node(const T dt) : double_node{nullptr, nullptr, dt} { }; @@ -69,8 +65,6 @@ class double_node { * @see double_node(const T dt) * @see double_node(double_node& const nd) * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) */ double_node(double_node* const nd) : next{nd}, prev{nullptr} { } @@ -84,46 +78,10 @@ class double_node { * @see double_node() * @see double_node(const T dt) * @see double_node(double_node* const nd) - * @see double_node(double_node& const nd) - * @see double_node(double_node* const nnd, double_node* const bnd) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) + * @see double_node(double_node& const nd */ double_node(double_node* const nd, const T dt) : next{nd}, data{dt} { } - - /** - * Creates a new double_node object that points to 2 double_nodes, but has no data. - * @note The 2 nodes provided as parameters will NOT point to this new node. You will have to either do this manually or use a DLL - * - * @param nnd double_node to which it will point - * @param bnd double_node which will point to it - * @see double_node() - * @see double_node(const T dt) - * @see double_node(double_node* nd) - * @see double_node(double_node& nd) - * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) - */ - double_node(double_node* const nnd, double_node* const bnd) - : next{nnd}, prev{bnd} { } - - - /** - * Creates a new double_node object that points to 2 double_nodes, and has data - * @note The 2 nodes provided as parameters will NOT point to this new node. You will have to either do this manually or use a DLL - * - * @param nnd double_node to which it will point - * @param bnd double_node which will point to it - * @param dt double_node data - * @see double_node() - * @see double_node(const T dt) - * @see double_node(double_node*const nd) - * @see double_node(double_node& const nd) - * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd) - */ - double_node(double_node* const nnd, double_node* const bnd, const T dt) - : next{nnd}, prev{bnd}, data{dt} { } /** * Construct a new double_node object from another double_node object. @@ -132,9 +90,7 @@ class double_node { * @see double_node() * @see double_node(const T dt) * @see double_node(double_node* nd) - * @see double_node(double_node* const nd, const T dt) - * @see double_node(double_node* const nnd, double_node* const bnd) - * @see double_node(double_node* const nnd, double_node* const bnd, const T dt) + * @see double_node(double_node* const nd, const T dt */ double_node(const double_node& nd);