changeset 32978:b68d209b6f28

Remove unused function guiMessageBox(). It is no longer needed after r31377.
author ib
date Thu, 10 Mar 2011 13:22:11 +0000
parents 541ec87f49ee
children 4905f5a87357
files gui/interface.c gui/interface.h
diffstat 2 files changed, 0 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Wed Mar 09 23:03:54 2011 +0000
+++ b/gui/interface.c	Thu Mar 10 13:22:11 2011 +0000
@@ -1243,24 +1243,3 @@
 
   return result;
 }
-
-// wrapper function for mp_msg to display a message box for errors and warnings.
-
-void guiMessageBox(int level, char * str) {
-	switch(level) {
-		case MSGL_FATAL:
-			gtkMessageBox(GTK_MB_FATAL|GTK_MB_SIMPLE, str);
-			break;
-		case MSGL_ERR:
-			gtkMessageBox(GTK_MB_ERROR|GTK_MB_SIMPLE, str);
-			break;
-#if 0
-// WARNING! Do NOT enable this! There are too many non-critical messages with
-// MSGL_WARN, for example: broken SPU packets, codec's bit error messages,
-// etc etc, they should not raise up a new window every time.
-		case MSGL_WARN:
-			gtkMessageBox(GTK_MB_WARNING|GTK_MB_SIMPLE, str);
-			break;
-#endif
-	}
-}
--- a/gui/interface.h	Wed Mar 09 23:03:54 2011 +0000
+++ b/gui/interface.h	Thu Mar 10 13:22:11 2011 +0000
@@ -168,7 +168,6 @@
 void guiEventHandling( void );
 void guiLoadFont( void );
 void guiLoadSubtitle( char * name );
-void guiMessageBox(int level, char * str);
 
 typedef struct plItem
 {