[vlc-commits] [Git][videolan/vlc][master] vout: remove unused vout_chrono_Reset()

Romain Vimont (@rom1v) gitlab at videolan.org
Fri Jul 2 13:39:43 UTC 2021



Romain Vimont pushed to branch master at VideoLAN / VLC


Commits:
6fe86449 by Romain Vimont at 2021-07-02T13:24:18+00:00
vout: remove unused vout_chrono_Reset()

This function has never been used since its introduction in
958ae35d1498512821ebcdb2d98d4ce7fce4871b.

Also remove the avg_initial field, only used from vout_chrono_Reset().

- - - - -


1 changed file:

- src/video_output/chrono.h


Changes:

=====================================
src/video_output/chrono.h
=====================================
@@ -28,7 +28,6 @@
 typedef struct {
     int     shift;
     vlc_tick_t avg;
-    vlc_tick_t avg_initial;
 
     int     shift_var;
     vlc_tick_t var;
@@ -39,7 +38,6 @@ typedef struct {
 static inline void vout_chrono_Init(vout_chrono_t *chrono, int shift, vlc_tick_t avg_initial)
 {
     chrono->shift       = shift;
-    chrono->avg_initial =
     chrono->avg         = avg_initial;
 
     chrono->shift_var   = shift+1;
@@ -77,9 +75,5 @@ static inline void vout_chrono_Stop(vout_chrono_t *chrono)
     /* For assert */
     chrono->start = VLC_TICK_INVALID;
 }
-static inline void vout_chrono_Reset(vout_chrono_t *chrono)
-{
-    vout_chrono_Init(chrono, chrono->shift, chrono->avg_initial);
-}
 
 #endif



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6fe8644907bb5b0cb5c5d709d573df65b2c95ded

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6fe8644907bb5b0cb5c5d709d573df65b2c95ded
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list