Code cleanup: remove unused sample counter from render session
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 7 Aug 2012 09:54:55 +0000 (09:54 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 7 Aug 2012 09:54:55 +0000 (09:54 +0000)
It's not used since new tile-based rendering and it was confusing
to have it in both session and tile manager.

Should be no functional changes.

intern/cycles/render/session.cpp
intern/cycles/render/session.h

index 5b32d23ceacacdaef4d17dfd9e87640c91f217d1..e5c42f8a40e0a82078a5e2247efb0ccbf29354dd 100644 (file)
@@ -61,7 +61,6 @@ Session::Session(const SessionParams& params_)
        reset_time = 0.0;
        preview_time = 0.0;
        paused_time = 0.0;
-       sample = 0;
 
        delayed_reset.do_reset = false;
        delayed_reset.samples = 0;
@@ -569,7 +568,6 @@ void Session::reset_(BufferParams& buffer_params, int samples)
        start_time = time_dt();
        preview_time = 0.0;
        paused_time = 0.0;
-       sample = 0;
 
        if(!params.background)
                progress.set_start_time(start_time + paused_time);
index 6c5e40bca63788753312f89ee48f47d350446abd..2e00ac3d602b4963eaabfca8128030bd0a993088 100644 (file)
@@ -103,7 +103,6 @@ public:
        Progress progress;
        SessionParams params;
        TileManager tile_manager;
-       int sample;
 
        boost::function<void(RenderTile&)> write_render_tile_cb;
        boost::function<void(RenderTile&)> update_render_tile_cb;