From 9a84b6d07b4bc33cb74fbdca54fbecc019b26e1f Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Mon, 5 Dec 2016 21:17:44 -0500 Subject: [PATCH] Removed unnecessary variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To the tune of 🎶"The Itsy-Bitsy Spider"🎶: The itsy bitsy variable Climbed into the codebase Down came the keyboard clicks And deleted the variable out Up came the mouse cursor And pushed this new commit And the itsy bitsy variable Just never came back again. This commit (or the previous one, actually) also moves the position of the reminder window vibrations, because previously it would vibrate without having pushed the window. Awkward! --- src/c/breathe_window.c | 2 +- src/c/graphics.c | 4 ++-- src/c/graphics.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/c/breathe_window.c b/src/c/breathe_window.c index fb23dcd..7cb86d3 100644 --- a/src/c/breathe_window.c +++ b/src/c/breathe_window.c @@ -41,7 +41,7 @@ static void inside_text_layer_update_proc(Layer *s_inside_text_layer, GContext * // Draws text at top of screen static void upper_text_layer_update_proc(Layer *s_inside_text_layer, GContext *ctx) { - graphics_draw_upper_text(ctx, bounds, s_animating, settings_get_heartRateVariation(), settings_get_displayText(), settings_get_textColor(), s_greet_text); + graphics_draw_upper_text(ctx, bounds, s_animating, settings_get_displayText(), settings_get_textColor(), s_greet_text); } // Draws text at bottom of screen diff --git a/src/c/graphics.c b/src/c/graphics.c index 344ea21..2b89a8f 100644 --- a/src/c/graphics.c +++ b/src/c/graphics.c @@ -34,7 +34,7 @@ static GPath *s_up_triangle, *s_down_triangle; #endif // Method for updating the upper text layer -void graphics_draw_upper_text(GContext *ctx, GRect bounds, bool is_animating, bool heart_rate_variation, int display_text, GColor textColor, char *greet_text) { +void graphics_draw_upper_text(GContext *ctx, GRect bounds, bool is_animating, int display_text, GColor textColor, char *greet_text) { #if defined(PBL_HEALTH) const char *steps_buffer = data_get_current_steps_buffer(); // Pebble Health exists; fetch the number of steps walked today #endif @@ -56,7 +56,7 @@ void graphics_draw_upper_text(GContext *ctx, GRect bounds, bool is_animating, bo } else { // Otherwise, show step counts if Pebble Health, and string if not. switch(display_text) { case 0: - //No text + // No text break; case 1: graphics_draw_text(ctx, greet_text, fonts_get_system_font(FONT_KEY), diff --git a/src/c/graphics.h b/src/c/graphics.h index 73c8375..439718d 100644 --- a/src/c/graphics.h +++ b/src/c/graphics.h @@ -8,7 +8,7 @@ #define FONT_KEY FONT_KEY_GOTHIC_14_BOLD #endif -void graphics_draw_upper_text(GContext *ctx, GRect bounds, bool is_animating, bool heart_rate_variation, int displayText, GColor textColor, char *); +void graphics_draw_upper_text(GContext *ctx, GRect bounds, bool is_animating, int displayText, GColor textColor, char *); void graphics_draw_lower_text(GContext *ctx, GRect bounds, bool is_animating, GColor textColor, char *);