diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index e374f51e60..a09f130a26 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -35,24 +35,18 @@ using std::ostream; using std::ostringstream; -void InsetBranch::init() -{ - setButtonLabel(); -} - - InsetBranch::InsetBranch(BufferParams const & bp, InsetBranchParams const & params) : InsetCollapsable(bp), params_(params) { - init(); + setButtonLabel(); } InsetBranch::InsetBranch(InsetBranch const & in) : InsetCollapsable(in), params_(in.params_) { - init(); + setButtonLabel(); } diff --git a/src/insets/InsetBranch.h b/src/insets/InsetBranch.h index 206bd64b66..754e788cb6 100644 --- a/src/insets/InsetBranch.h +++ b/src/insets/InsetBranch.h @@ -94,8 +94,6 @@ private: virtual Inset * clone() const; - /// used by the constructors - void init(); /// InsetBranchParams params_; };