Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/pebble-dos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com>2015-04-13 18:34:20 +0300
committerAlexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com>2015-04-13 18:34:20 +0300
commit24e89cde9edbcf31e97d5c60b44d48fa30b3d316 (patch)
treebcb0f04172e3f592715f3a6d811ba5ee33c6b236
parent7a3fcf1763da11ceeea838b665873f192cdf971c (diff)
CleanupHEADmaster
-rw-r--r--src/dos.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/dos.c b/src/dos.c
index 3c62618..4d0795c 100644
--- a/src/dos.c
+++ b/src/dos.c
@@ -61,18 +61,6 @@ void tick(struct tm *tick_time, TimeUnits units_changed)
start_draw();
}
-void focus_handler(bool in_focus) {
- if (in_focus) {
- if (rand() % 5 == 0) // some joke :)
- {
- text_layer_set_text(text_layer, "C:\\>format\nc:_");
- if (timer) app_timer_cancel(timer);
- time_ticks = state = 0;
- timer = app_timer_register(500, app_timer, NULL);
- }
- }
-}
-
void handle_init(void) {
// Create a window and text layer
window = window_create();
@@ -95,13 +83,6 @@ void handle_init(void) {
window_stack_push(window, true);
tick_timer_service_subscribe(MINUTE_UNIT, tick);
-
- //start_draw();
- // App Logging!
- APP_LOG(APP_LOG_LEVEL_DEBUG, "Just pushed a window!");
-
- srand(time(NULL));
- app_focus_service_subscribe(focus_handler);
}
void handle_deinit(void) {
@@ -117,8 +98,6 @@ void handle_deinit(void) {
// Unload font
fonts_unload_custom_font(font);
-
- app_focus_service_unsubscribe();
}
int main(void) {