From fb6b1e5377bfc809c9738c1288894ea164dcd749 Mon Sep 17 00:00:00 2001 From: souliane Date: Tue, 24 Nov 2015 23:42:49 +0100 Subject: [PATCH] quick_frontend (quick_blog): remove tags2mbdata which is replaced by common.iter2dict --- frontends/src/quick_frontend/quick_blog.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/frontends/src/quick_frontend/quick_blog.py b/frontends/src/quick_frontend/quick_blog.py index f0a1949e..ad902542 100644 --- a/frontends/src/quick_frontend/quick_blog.py +++ b/frontends/src/quick_frontend/quick_blog.py @@ -461,16 +461,3 @@ def registerClass(type_, cls): raise ValueError("type_ should be ENTRY or COMMENT") if COMMENTS_CLS is None: COMMENTS_CLS = ENTRY_CLS - -def tags2mbdata(tags): - """Build from the tags a dict using the microblog data format. - - @param tags (list[unicode]): list of tags - @return dict - """ - data = {} - count = 0 - for tag in tags: - data[('tag#%i' % count) if count else 'tag'] = tag - count += 1 - return data