diff Discovery/Src/tMenu.c @ 225:2bb1db22b5f5 div-fixes-3

cleanup: random set of cleanups A random set of cleanups, as found during code reading, and looking around fixing issues. Contains all kinds of things: typo's in comment, typo in variable name, removal of unused code, making things static where possible. Does not contain any functional changes. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 01 Apr 2019 15:50:41 +0200
parents 842f57bbaaad
children 0dbf550dc743
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c	Sun Mar 31 19:35:51 2019 +0200
+++ b/Discovery/Src/tMenu.c	Mon Apr 01 15:50:41 2019 +0200
@@ -398,22 +398,6 @@
     write_content_simple(&tMscreen, 0, 800, 480-KEY_LABEL_HIGH, &FontT24,localtext,CLUT_ButtonSurfaceScreen);
 }
 
-/*
-_Bool skipCCRpage(uint8_t page)
-{
-    if(menu.ccrOnlyContentForPage[page])
-    {
-        if(actual_menu_content == MENU_SURFACE)
-        {
-                SSettings *data = settingsGetPointer();
-                if((data->dive_mode != DIVEMODE_CCR) && data->hideCCRinOCmode)
-                    return 1;
-        }
-    }
-    return 0;
-}
-*/
-
 static void findValidPosition(uint8_t *pageOuput, uint8_t *lineOutput)
 {
     uint8_t page = 0;
@@ -568,9 +552,6 @@
     char subtext[MAX_PAGE_TEXTSIZE];
     uint16_t tabPosition;
 
-//	if(menu.modeFlipPages == 0)
-//		return;
-
     if((get_globalState() == StMSYS) && (actual_menu_content == MENU_SURFACE))
     {
         page = menu.pageMemoryForNavigation;