citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit d7bc435eccc0db5d79109b348e4dbefa2ad3d7d7
parent a4663a1309d2830ecb31125501ecc9e3911f0b68
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 11 Dec 2016 12:49:09 -0700

src: remove ununsed functions

Diffstat:
Msrc/gl_main.cc | 35-----------------------------------
1 file changed, 0 insertions(+), 35 deletions(-)

diff --git a/src/gl_main.cc b/src/gl_main.cc @@ -69,14 +69,6 @@ display(void) } -/* Return current time in milli-seconds */ -static long -current_time(void) -{ - //return glutGet(GLUT_ELAPSED_TIME); - return glfwGetTime(); -} - void add_new_process(std::string const &file_name) { @@ -134,33 +126,6 @@ next_frame(View *vu) // glutPostRedisplay (); } -void -print_fps(int ms) -{ - View *vu = static_vu; - if (vu->animate) { - // glutTimerFunc (ms, print_fps, ms); - long t = current_time (); - LOGI ("%gfps\n", vu->num_frames * 1000. / (t - vu->fps_start_time)); - vu->num_frames = 0; - vu->fps_start_time = t; - } else - vu->has_fps_timer = false; -} - -void -start_animation() -{ - View *vu = static_vu; - vu->num_frames = 0; - vu->last_frame_time = vu->fps_start_time = current_time(); - // glutIdleFunc(idle_step); - if (!vu->has_fps_timer) { - vu->has_fps_timer = true; - // glutTimerFunc (5000, print_fps, 5000); - } -} - #if 0 int main(int argc, char *argv[])