From 2ebb15cb280986c42fd5c11d05d3f0c07dfee0cc Mon Sep 17 00:00:00 2001 From: Bill Zorn Date: Mon, 9 Nov 2015 19:32:32 -0800 Subject: [PATCH] remove unused reference code --- lib/cardlib.py | 55 -------------------------------------------------- 1 file changed, 55 deletions(-) diff --git a/lib/cardlib.py b/lib/cardlib.py index a12b856..1a14ac3 100644 --- a/lib/cardlib.py +++ b/lib/cardlib.py @@ -708,61 +708,6 @@ class Card: if for_forum: outstr += '[/i]' - elif for_html and False: - outstr += '
' - cardname = self.__dict__[field_name] - #cardname = transforms.name_unpass_1_dashes(self.__dict__[field_name]) - if vdump and not cardname: - cardname = '_NONAME_' - outstr += cardname + ' ' - - coststr = self.__dict__[field_cost].format(for_html = for_html) - if vdump or not coststr == '_NOCOST_': - outstr += coststr - outstr += '
' - - if self.__dict__[field_rarity]: - if self.__dict__[field_rarity] in utils.json_rarity_unmap: - rarity = utils.json_rarity_unmap[self.__dict__[field_rarity]] - else: - rarity = self.__dict__[field_rarity] - outstr += ' (' + rarity.lower() + ') ' - outstr += '\n
' - - outstr += ' '.join(self.__dict__[field_supertypes] + self.__dict__[field_types]) - if self.__dict__[field_subtypes]: - outstr += ' ' + utils.dash_marker + ' ' + ' '.join(self.__dict__[field_subtypes]) - outstr += '
\n' - - if self.__dict__[field_text].text: - mtext = self.__dict__[field_text].text - mtext = transforms.text_unpass_1_choice(mtext, delimit = True) - #mtext = transforms.text_unpass_2_counters(mtext) - #mtext = transforms.text_unpass_3_uncast(mtext) - mtext = transforms.text_unpass_4_unary(mtext) - mtext = transforms.text_unpass_5_symbols(mtext,for_forum, for_html) - #mtext = transforms.text_unpass_6_cardname(mtext, cardname) - mtext = transforms.text_unpass_7_newlines(mtext).replace("\n", "
") - #mtext = transforms.text_unpass_8_unicode(mtext) - newtext = Manatext('') - newtext.text = mtext - newtext.costs = self.__dict__[field_text].costs - outstr += newtext.format(for_html = for_html) + '\n' - - if self.__dict__[field_pt]: - outstr += '
(' + utils.from_unary(self.__dict__[field_pt]) + ')
' - outstr += '\n' - - if self.__dict__[field_loyalty]: - outstr += '((' + utils.from_unary(self.__dict__[field_loyalty]) + '))' - outstr += '\n' - - if vdump and self.__dict__[field_other]: - outstr += utils.dash_marker * 2 - outstr += '\n' - for idx, value in self.__dict__[field_other]: - outstr += '<' + str(idx) + '> ' + str(value) - outstr += '\n' else: cardname = self.__dict__[field_name] #cardname = transforms.name_unpass_1_dashes(self.__dict__[field_name])