[Bf-blender-cvs] [f64d7bfa4a2] master: Cleanup: compiler warnings about unused code
Brecht Van Lommel
noreply at git.blender.org
Wed Jan 5 16:30:40 CET 2022
Commit: f64d7bfa4a21ed82f6b97da5e384995fd5c50195
Author: Brecht Van Lommel
Date: Wed Jan 5 16:06:23 2022 +0100
Branches: master
https://developer.blender.org/rBf64d7bfa4a21ed82f6b97da5e384995fd5c50195
Cleanup: compiler warnings about unused code
===================================================================
M intern/cycles/blender/util.h
M intern/cycles/session/denoising.cpp
===================================================================
diff --git a/intern/cycles/blender/util.h b/intern/cycles/blender/util.h
index ae9cdfd4f58..59520b94d6f 100644
--- a/intern/cycles/blender/util.h
+++ b/intern/cycles/blender/util.h
@@ -676,7 +676,7 @@ static inline uint object_ray_visibility(BL::Object &b_ob)
*
* NOTE: This code is run prior to object motion blur initialization. so can not access properties
* set by `sync_object_motion_init()`. */
-static bool object_need_motion_attribute(BObjectInfo &b_ob_info, Scene *scene)
+static inline bool object_need_motion_attribute(BObjectInfo &b_ob_info, Scene *scene)
{
const Scene::MotionType need_motion = scene->need_motion();
if (need_motion == Scene::MOTION_NONE) {
diff --git a/intern/cycles/session/denoising.cpp b/intern/cycles/session/denoising.cpp
index 91a18928bd2..b9021b9cbe2 100644
--- a/intern/cycles/session/denoising.cpp
+++ b/intern/cycles/session/denoising.cpp
@@ -27,46 +27,6 @@ CCL_NAMESPACE_BEGIN
/* Utility Functions */
-static void print_progress(int num, int total, int frame, int num_frames)
-{
- const char *label = "Denoise Frame ";
- int cols = system_console_width();
-
- cols -= strlen(label);
-
- int len = 1;
- for (int x = total; x > 9; x /= 10) {
- len++;
- }
-
- int bars = cols - 2 * len - 6;
-
- printf("\r%s", label);
-
- if (num_frames > 1) {
- int frame_len = 1;
- for (int x = num_frames - 1; x > 9; x /= 10) {
- frame_len++;
- }
- bars -= frame_len + 2;
- printf("%*d ", frame_len, frame);
- }
-
- int v = int(float(num) * bars / total);
- printf("[");
- for (int i = 0; i < v; i++) {
- printf("=");
- }
- if (v < bars) {
- printf(">");
- }
- for (int i = v + 1; i < bars; i++) {
- printf(" ");
- }
- printf(string_printf("] %%%dd / %d", len, total).c_str(), num);
- fflush(stdout);
-}
-
/* Splits in at its last dot, setting suffix to the part after the dot and in to the part before
* it. Returns whether a dot was found. */
static bool split_last_dot(string &in, string &suffix)
More information about the Bf-blender-cvs
mailing list