From 91f680b08931aaa43df551d18fdd4b6638fbac7b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Oct 2018 18:07:47 +0100 Subject: Fix style warnings from static analyser --- src/frame.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/frame.c') diff --git a/src/frame.c b/src/frame.c index cf6bd7f..2f533ff 100644 --- a/src/frame.c +++ b/src/frame.c @@ -78,12 +78,6 @@ struct _paragraph }; -PangoLayout *paragraph_layout(Paragraph *para) -{ - return para->layout; -} - - /* Returns the height of the paragraph including all spacing, padding etc */ double paragraph_height(Paragraph *para) { @@ -1502,11 +1496,12 @@ void delete_text_from_frame(struct frame *fr, struct edit_pos p1, struct edit_po void show_para(Paragraph *p) { - int i; printf(_("Paragraph %p\n"), p); if ( p->type == PARA_TYPE_TEXT ) { + int i; + printf(_("%i runs:\n"), p->n_runs); for ( i=0; in_runs; i++ ) { printf(_(" Run %2i: SCBlock %p %s '%s'\n"), -- cgit v1.2.3