From 094fff00f07f96203faa94bffefa45ea0c77339e Mon Sep 17 00:00:00 2001 From: Murilo Soares Pereira Date: Sun, 4 Apr 2010 00:33:39 -0300 Subject: [PATCH] initialize_frame() isn't needed, newwin() takes care of it. --- lib/frame.c | 10 +--------- lib/frame.h | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/frame.c b/lib/frame.c index 1a6b2fe..33e45da 100644 --- a/lib/frame.c +++ b/lib/frame.c @@ -2,20 +2,12 @@ #include #include "frame.h" -WINDOW *initialize_shape() { - WINDOW *shape; - - shape = malloc(sizeof(shape)); - - return(shape); -} - struct frame *initialize_frame() { struct frame *frame = NULL; frame = malloc(sizeof(*frame)); - frame->shape = initialize_shape(); + frame->shape = NULL; frame->height = FRAME_HEIGHT; frame->width = FRAME_WIDTH; frame->start_y = 0; diff --git a/lib/frame.h b/lib/frame.h index e4529e8..0a10592 100644 --- a/lib/frame.h +++ b/lib/frame.h @@ -12,7 +12,6 @@ struct frame { int start_x; }; -WINDOW *initialize_shape(); struct frame *initialize_frame(); void delete_frame(struct frame *); void set_frame(struct frame *, int, int);