diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-20 15:21:27 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-20 15:21:27 +0300 |
commit | 38a2bf665b2e5efd3bf6d54ffa0e2fc0385b9847 (patch) | |
tree | 15cabcc8d5731014656d12f5bfd3213141721b68 /intern/cycles/device/device_cuda.cpp | |
parent | 81e584ed17902878579131776b4e5a9f7b54cdab (diff) |
Cycles: Cleanup, style and unused arguments
- Some arguments were inapproriatry tagged as unused
using (void)foo semantic.
Only use such semantic in tricky casses, when something
needs to be ignored in release builds or something is
dependent on tricky ifndef policy.
For rest of the cases just use void foo(int /bar*/)
semantic, which ensures variable is not used. Solves
confusion and code running out of sync with later
development.
- Used proper unused semantic to some arguments.
- Added braces to make code easier to follow, tricky
indentation with ifdef, uh.
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp index 90647c344e3..26671bdde28 100644 --- a/intern/cycles/device/device_cuda.cpp +++ b/intern/cycles/device/device_cuda.cpp @@ -1148,8 +1148,6 @@ public: device_ptr mean_ptr, device_ptr variance_ptr, int r, int4 rect, DenoisingTask *task) { - (void) task; - if(have_error()) return false; @@ -1179,8 +1177,6 @@ public: device_ptr sample_variance_ptr, device_ptr sv_variance_ptr, device_ptr buffer_variance_ptr, DenoisingTask *task) { - (void) task; - if(have_error()) return false; |