enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / gtk2_ardour / editing.cc
index 1e58fcddbc16bb44cc32ef52a3180c3e077fd5f5..10181d56ff7879a7bf6e830233b903f37966d962 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 
 #include "editing.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 
@@ -115,25 +115,6 @@ 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;}