From a1d106ab3e04b2c3fde4fca23ea72551a892efac Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 5 Jan 2015 12:52:29 +0100 Subject: sfeed_frames: cleanup --- sfeed_frames.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sfeed_frames.c b/sfeed_frames.c index ae4aa12..5d40d07 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -173,12 +173,6 @@ main(int argc, char *argv[]) } /* first of feed section or new feed section (differ from previous). */ if(!totalfeeds || strcmp(fcur->name, feedname)) { - /* TODO: - * - makepathname isn't necesary if fields[FieldFeedName] - * is the same as the previous line. - * - move this part below where FieldFeedName is - * checked if it's different ? */ - /* make directory for feedname */ if(!(namelen = makepathname(feedname, name, sizeof(name)))) continue; @@ -197,10 +191,10 @@ main(int argc, char *argv[]) SLIST_INSERT_AFTER(fcur, f, entry); fcur = f; - /* end previous one. */ - if(totalfeeds) { + /* end previous feed section. */ + if(totalfeeds) fputs("\n", fpitems); - } + /* write menu link if new. */ if(fields[FieldFeedName][0] != '\0') { fputs("