diff options
Diffstat (limited to 'apps/plugins/pong.c')
-rw-r--r-- | apps/plugins/pong.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c index 220bcf641c..905e7689f8 100644 --- a/apps/plugins/pong.c +++ b/apps/plugins/pong.c | |||
@@ -194,8 +194,6 @@ PLUGIN_HEADER | |||
194 | #endif | 194 | #endif |
195 | #endif | 195 | #endif |
196 | 196 | ||
197 | static const struct plugin_api* rb; | ||
198 | |||
199 | struct pong { | 197 | struct pong { |
200 | int ballx; /* current X*RES position of the ball */ | 198 | int ballx; /* current X*RES position of the ball */ |
201 | int bally; /* current Y*RES position of the ball */ | 199 | int bally; /* current Y*RES position of the ball */ |
@@ -491,7 +489,7 @@ void showscore(struct pong *p) | |||
491 | } | 489 | } |
492 | 490 | ||
493 | /* this is the plugin entry point */ | 491 | /* this is the plugin entry point */ |
494 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 492 | enum plugin_status plugin_start(const void* parameter) |
495 | { | 493 | { |
496 | struct pong pong; | 494 | struct pong pong; |
497 | int game = 1; | 495 | int game = 1; |
@@ -515,8 +513,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
515 | this to avoid the compiler warning about it */ | 513 | this to avoid the compiler warning about it */ |
516 | (void)parameter; | 514 | (void)parameter; |
517 | 515 | ||
518 | rb = api; /* use the "standard" rb pointer */ | ||
519 | |||
520 | /* Clear screen */ | 516 | /* Clear screen */ |
521 | rb->lcd_clear_display(); | 517 | rb->lcd_clear_display(); |
522 | 518 | ||