Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Removed unnecessary variable
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
aaronhktan committed Dec 6, 2016
1 parent e24d394 commit 9a84b6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/c/breathe_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/c/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/c/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

Expand Down

0 comments on commit 9a84b6d

Please sign in to comment.