Removing useless method and expliciting headers.

This commit is contained in:
Murilo Pereira 2011-02-06 04:39:13 -02:00
parent a5ee9230df
commit 83df7ba92f
2 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,8 @@
#include "card.h"
#include "stack.h"
#include "display.h" #include "display.h"
#include "keyboard.h" #include "keyboard.h"
void mark_origin(struct cursor *cursor) {
return;
}
struct stack *cursor_stack(struct cursor *cursor) { struct stack *cursor_stack(struct cursor *cursor) {
struct stack *cursor_stack = NULL; struct stack *cursor_stack = NULL;
@ -60,7 +58,6 @@ void handle_card_movement(struct cursor *cursor) {
struct stack *destination = NULL; struct stack *destination = NULL;
int option; int option;
mark_origin(cursor);
origin = cursor_stack(cursor); origin = cursor_stack(cursor);
/* trying to move cards from the space between the waste pile and the /* trying to move cards from the space between the waste pile and the

View File

@ -9,7 +9,6 @@
extern struct deck *deck; extern struct deck *deck;
extern struct cursor *cursor; extern struct cursor *cursor;
void mark_origin(struct cursor *);
struct stack *cursor_stack(struct cursor *); struct stack *cursor_stack(struct cursor *);
bool cursor_on_stack(struct cursor *, struct stack *); bool cursor_on_stack(struct cursor *, struct stack *);
bool cursor_on_invalid_spot(struct cursor *); bool cursor_on_invalid_spot(struct cursor *);