Removed some debug code

Sat, 19 Jan 2019 22:07:42 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 19 Jan 2019 22:07:42 +0100
changeset 574
362c4700937e
parent 573
479878d528f2
child 575
86496d2bc4bb

Removed some debug code

brewpanel/brewpanel.c file | annotate | diff | comparison | revisions
--- a/brewpanel/brewpanel.c	Sat Jan 19 20:31:50 2019 +0100
+++ b/brewpanel/brewpanel.c	Sat Jan 19 22:07:42 2019 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2015
+ * Copyright (C) 2015-2019
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -104,8 +104,6 @@
 
     openlog("brewpanel", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER);
     syslog(LOG_NOTICE, "mbsePi-apps brewpanel v%s starting", VERSION);
-    if (debug)
-	fprintf(stdout, "mbsePi-apps brewpanel v%s starting\n", VERSION);
 
     /*
      *  Catch all the signals we can, and ignore the rest. Note that SIGKILL can't be ignored
@@ -174,7 +172,6 @@
 
 int server(void)
 {
-    int         max_x = 0, max_y = 0;
     SDL_Rect    **modes;
     char        title[81];
 
@@ -191,18 +188,12 @@
 	/* Check if our resolution is restricted */
 	if (modes == (SDL_Rect **)-1) {
 	    syslog(LOG_NOTICE, "SDL all resolutions available.\n");
-	} else {
-	    max_x = modes[0]->w;
-	    max_y = modes[0]->h;
 	}
     }
 
     PAN_x = 384;
     PAN_y = 480;
 
-    if (debug)
-	fprintf(stdout, "Screen max X*Y: %d*%d panel X*Y: %d*%d\n", max_x, max_y, PAN_x, PAN_y);
-
     PAN_surface = SDL_SetVideoMode( PAN_x, PAN_y, 32, SDL_SWSURFACE|SDL_DOUBLEBUF );
     if (PAN_surface == NULL) {
 	syslog(LOG_NOTICE, "Could not create main surface: %s", SDL_GetError());

mercurial