From 34d079565882fbffdf58fe61d0f493274438a699 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 20 Dec 2022 21:39:48 -0800 Subject: [PATCH] smyrna: remove unused 'topviewusermode' --- cmd/smyrna/smyrnadefs.h | 3 --- cmd/smyrna/viewport.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 1aa39bcd7..5f1a3bfd3 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -389,9 +389,6 @@ typedef struct int camera_count; //number of cameras int active_camera; - /*0 advanced users with editing options 1 nonice users just navigate (glmenu system) */ - int topviewusermode; - /*open gl canvas, used to be a globa variable before looks better wrapped in viewinfo */ GtkWidget *drawing_area; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 9880728ee..0c4a0ad90 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -168,7 +168,6 @@ void set_viewport_settings_from_template(ViewInfo *vi, Agraph_t *g) { vi->FontSize = (float) atof(get_attribute_value("defaultfontsize", vi, g)); - vi->topviewusermode = atoi(get_attribute_value("usermode", vi, g)); get_attribute_value("defaultmagnifierwidth", vi, g); vi->mg.width = atoi(get_attribute_value("defaultmagnifierwidth", vi, g)); @@ -331,7 +330,6 @@ void init_viewport(ViewInfo * view) view->zoom = -20; view->FontSize = 52; - view->topviewusermode = TOP_VIEW_USER_NOVICE_MODE; //for demo view->mg.active = 0; view->mg.x = 0; view->mg.y = 0; -- 2.40.0