From 21249e793076b7d57731f8870cf830c8e2de8dfe Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 11 Aug 2013 19:06:13 +0200 Subject: removed unused UndoOp ctors --- muse2/muse/undo.cpp | 15 --------------- muse2/muse/undo.h | 5 +---- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/muse2/muse/undo.cpp b/muse2/muse/undo.cpp index eccb4690..5081f86c 100644 --- a/muse2/muse/undo.cpp +++ b/muse2/muse/undo.cpp @@ -577,11 +577,6 @@ UndoOp::UndoOp() type=UndoOp::DoNothing; } -UndoOp::UndoOp(UndoType type_) -{ - type = type_; -} - UndoOp::UndoOp(UndoType type_, int a_, int b_, int c_) { assert(type_==AddKey || type_==DeleteKey || @@ -642,16 +637,6 @@ UndoOp::UndoOp(UndoType type_, Event& nev, Part* part_, bool doCtrls_, bool doCl doClones = doClones_; } -UndoOp::UndoOp(UndoType type_, int c, int ctrl_, int ov, int nv) - { - assert(false); // DELETETHIS whole ctor. - - type = type_; - channel = c; - ctrl = ctrl_; - oVal = ov; - nVal = nv; - } UndoOp::UndoOp(UndoType type_, Marker* copyMarker_, Marker* realMarker_) { diff --git a/muse2/muse/undo.h b/muse2/muse/undo.h index 4fded825..a0b9c935 100644 --- a/muse2/muse/undo.h +++ b/muse2/muse/undo.h @@ -111,17 +111,14 @@ struct UndoOp { UndoOp(); UndoOp(UndoType type, int a, int b, int c=0); UndoOp(UndoType type, int n, Track* track); - UndoOp(UndoType type, Part* part, unsigned old_len_or_tick=-1, unsigned new_len_or_tick=-1, bool doCtrls=false, bool doClones=false); // FIXME these bools are UNUSED!! + UndoOp(UndoType type, Part* part, unsigned old_len_or_tick=-1, unsigned new_len_or_tick=-1, bool doCtrls=false, bool doClones=false); // FIXME these bools are UNUSED!!. XTICKS! UndoOp(UndoType type, Part* part, const char* old_name, const char* new_name); UndoOp(UndoType type, Event& oev, Event& nev, Part* part, bool doCtrls, bool doClones); UndoOp(UndoType type, Event& nev, Part* part, bool doCtrls, bool doClones); - UndoOp(UndoType type, Part* part, unsigned tick, bool doCtrls, bool doClones); // FIXME FINDMICHJETZT XTicks! - UndoOp(UndoType type, int c, int ctrl, int ov, int nv); UndoOp(UndoType type, const char* changedFile, const char* changeData, int startframe, int endframe); UndoOp(UndoType type, Marker* copyMarker, Marker* realMarker); UndoOp(UndoType type, Track* track, const char* old_name, const char* new_name); UndoOp(UndoType type, Track* track, int old_chan, int new_chan); - UndoOp(UndoType type); }; class Undo : public std::list { -- cgit v1.2.3