瀏覽代碼

remove silly msghandling.cxx

David Rose 16 年之前
父節點
當前提交
3e8b636090

+ 0 - 2
panda/src/tinydisplay/Sources.pp

@@ -34,7 +34,6 @@
     tinyOsxGraphicsPipe.I tinyOsxGraphicsPipe.h \
     tinyOsxGraphicsPipe.I tinyOsxGraphicsPipe.h \
     tinyOsxGraphicsWindow.h tinyOsxGraphicsWindow.I \
     tinyOsxGraphicsWindow.h tinyOsxGraphicsWindow.I \
     $[if $[IS_OSX],tinyOsxGraphicsWindow.mm,] \
     $[if $[IS_OSX],tinyOsxGraphicsWindow.mm,] \
-    msghandling.h \
     zbuffer.h zfeatures.h zgl.h \
     zbuffer.h zfeatures.h zgl.h \
     zline.h zmath.h \
     zline.h zmath.h \
     ztriangle_1.cxx ztriangle_2.cxx \
     ztriangle_1.cxx ztriangle_2.cxx \
@@ -53,7 +52,6 @@
     init.cxx \
     init.cxx \
     td_light.cxx \
     td_light.cxx \
     memory.cxx \
     memory.cxx \
-    msghandling.cxx \
     specbuf.cxx \
     specbuf.cxx \
     store_pixel.cxx \
     store_pixel.cxx \
     td_texture.cxx \
     td_texture.cxx \

+ 0 - 55
panda/src/tinydisplay/msghandling.cxx

@@ -1,55 +0,0 @@
-#include <stdarg.h>
-#include <stdio.h>
-
-#ifndef NDEBUG
-// Question: doesn't having this kinda defeat the purpose?
-#define NDEBUG
-#endif
-
-#ifdef NDEBUG
-#define NO_DEBUG_OUTPUT
-#endif
-
-/* Use this function to output messages when something unexpected
-   happens (which might be an indication of an error). *Don't* use it
-   when there's internal errors in the code - these should be handled
-   by asserts. */
-void
-tgl_warning(const char *format, ...)
-{
-#ifndef NO_DEBUG_OUTPUT
-  va_list args;
-  va_start(args, format);
-  fprintf(stderr, "*WARNING* ");
-  vfprintf(stderr, format, args);
-  va_end(args);
-#endif /* !NO_DEBUG_OUTPUT */
-}
-
-/* This function should be used for debug output only. */
-void
-tgl_trace(const char *format, ...)
-{
-#ifndef NO_DEBUG_OUTPUT
-  va_list args;
-  va_start(args, format);
-  fprintf(stderr, "*DEBUG* ");
-  vfprintf(stderr, format, args);
-  va_end(args);
-#endif /* !NO_DEBUG_OUTPUT */
-}
-
-/* Use this function to output info about things in the code which
-   should be fixed (missing handling of special cases, important
-   features not implemented, known bugs/buglets, ...). */
-void
-tgl_fixme(const char *format, ...)
-{
-#ifndef NO_DEBUG_OUTPUT
-  va_list args;
-  va_start(args, format);
-  fprintf(stderr, "*FIXME* ");
-  vfprintf(stderr, format, args);
-  va_end(args);
-#endif /* !NO_DEBUG_OUTPUT */
-}

+ 0 - 8
panda/src/tinydisplay/msghandling.h

@@ -1,8 +0,0 @@
-#ifndef _msghandling_h_
-#define _msghandling_h_
-
-extern void tgl_warning(const char *text, ...);
-extern void tgl_trace(const char *text, ...);
-extern void tgl_fixme(const char *text, ...);
-
-#endif /* _msghandling_h_ */

+ 0 - 2
panda/src/tinydisplay/specbuf.cxx

@@ -1,5 +1,4 @@
 #include "zgl.h"
 #include "zgl.h"
-#include "msghandling.h"
 #include <math.h>
 #include <math.h>
 #include <stdlib.h>
 #include <stdlib.h>
 
 
@@ -44,7 +43,6 @@ specbuf_get_buffer(GLContext *c, const int shininess_i,
     return buf;     
     return buf;     
   }
   }
   /* overwrite the lru buffer */
   /* overwrite the lru buffer */
-  /*tgl_trace("overwriting spec buffer :(\n");*/
   oldest->shininess_i = shininess_i;
   oldest->shininess_i = shininess_i;
   oldest->last_used = c->specbuf_used_counter++;
   oldest->last_used = c->specbuf_used_counter++;
   calc_buf(oldest, shininess);
   calc_buf(oldest, shininess);

+ 0 - 1
panda/src/tinydisplay/td_light.cxx

@@ -1,5 +1,4 @@
 #include "zgl.h"
 #include "zgl.h"
-#include "msghandling.h"
 #include <math.h>
 #include <math.h>
 
 
 static inline float clampf(float a,float min,float max)
 static inline float clampf(float a,float min,float max)

+ 0 - 1
panda/src/tinydisplay/tinydisplay_composite1.cxx

@@ -5,7 +5,6 @@
 #include "init.cxx"
 #include "init.cxx"
 #include "td_light.cxx"
 #include "td_light.cxx"
 #include "memory.cxx"
 #include "memory.cxx"
-#include "msghandling.cxx"
 #include "specbuf.cxx"
 #include "specbuf.cxx"
 #include "store_pixel.cxx"
 #include "store_pixel.cxx"
 #include "td_texture.cxx"
 #include "td_texture.cxx"