[Bf-blender-cvs] [0639f008b60] master: Cleanup: GPU: Remove unused GPU_debug

Clément Foucault noreply at git.blender.org
Sat Sep 12 17:35:41 CEST 2020


Commit: 0639f008b6027d9ae1f29a5ecef835333b039b7e
Author: Clément Foucault
Date:   Sat Sep 12 16:22:06 2020 +0200
Branches: master
https://developer.blender.org/rB0639f008b6027d9ae1f29a5ecef835333b039b7e

Cleanup: GPU: Remove unused GPU_debug

===================================================================

M	source/blender/gpu/CMakeLists.txt
D	source/blender/gpu/GPU_debug.h
D	source/blender/gpu/intern/gpu_debug.cc

===================================================================

diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index b763ea2a528..b7ffa59538a 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -62,7 +62,6 @@ set(SRC
   intern/gpu_capabilities.cc
   intern/gpu_codegen.c
   intern/gpu_context.cc
-  intern/gpu_debug.cc
   intern/gpu_drawlist.cc
   intern/gpu_framebuffer.cc
   intern/gpu_immediate.cc
@@ -113,7 +112,6 @@ set(SRC
   GPU_capabilities.h
   GPU_common.h
   GPU_context.h
-  GPU_debug.h
   GPU_drawlist.h
   GPU_framebuffer.h
   GPU_immediate.h
diff --git a/source/blender/gpu/GPU_debug.h b/source/blender/gpu/GPU_debug.h
deleted file mode 100644
index 09dc02c0fc6..00000000000
--- a/source/blender/gpu/GPU_debug.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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 the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * The Original Code is Copyright (C) 2005 Blender Foundation.
- * All rights reserved.
- */
-
-/** \file
- * \ingroup gpu
- */
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* prints something if debug mode is active only */
-void GPU_print_error_debug(const char *str);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/source/blender/gpu/intern/gpu_debug.cc b/source/blender/gpu/intern/gpu_debug.cc
deleted file mode 100644
index c5b8eab1e5f..00000000000
--- a/source/blender/gpu/intern/gpu_debug.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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 the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * The Original Code is Copyright (C) 2005 Blender Foundation.
- * All rights reserved.
- */
-
-/** \file
- * \ingroup gpu
- */
-
-#include "BLI_compiler_attrs.h"
-#include "BLI_sys_types.h"
-#include "BLI_system.h"
-#include "BLI_utildefines.h"
-
-#include "BKE_global.h"
-
-#include "GPU_debug.h"
-#include "intern/gpu_private.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-void GPU_print_error_debug(const char *str)
-{
-  if (G.debug & G_DEBUG) {
-    fprintf(stderr, "GPU: %s\n", str);
-  }
-}



More information about the Bf-blender-cvs mailing list