Remove dead code.
[ardour.git] / gtk2_ardour / editing.cc
index c9efa1feb235e86c091ba07f973925ce7eabd0ad..1e58fcddbc16bb44cc32ef52a3180c3e077fd5f5 100644 (file)
@@ -17,7 +17,8 @@
 
 */
 
-#include <string>
+#include <cstring>
+#include <cstring>
 
 #include "editing.h"
 
@@ -31,6 +32,7 @@ using namespace std;
 #define SNAPMODE(a) /*empty*/
 #define REGIONLISTSORTTYPE(a) /*empty*/
 #define MOUSEMODE(a) /*empty*/
+#define MIDIEDITMODE(a) /*empty*/
 #define ZOOMFOCUS(a) /*empty*/
 #define DISPLAYCONTROL(a) /*empty*/
 
@@ -113,6 +115,25 @@ const char *mousemodestrs[] = {
 #undef MOUSEMODE
 #define MOUSEMODE(a) /*empty*/
 
+// MIDIEDITMODE
+#undef MIDIEDITMODE
+#define MIDIEDITMODE(s) if (!strcmp(type, #s)) {return s;}
+MidiEditMode
+str2midieditmode (const string & str) {
+       const char* type = str.c_str();
+       #include "editing_syms.h"
+       return MidiEditSelect;
+}
+
+#undef MIDIEDITMODE
+#define MIDIEDITMODE(s) N_(#s),
+const char *midieditmodestrs[] = {
+       #include "editing_syms.h"
+       0
+};
+#undef MIDIEDITMODE
+#define MIDIEDITMODE(a) /*empty*/
+
 // ZOOMFOCUS
 #undef ZOOMFOCUS
 #define ZOOMFOCUS(s) if (!strcmp(type, #s)) {return s;}