Removed obsolete code from templates writer.

Sat, 11 Sep 2010 17:36:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Sep 2010 17:36:08 +0200
changeset 586
9dbffeed66a9
parent 585
f40889943c0a
child 587
3078a9781573

Removed obsolete code from templates writer.

E5XML/TemplatesWriter.py file | annotate | diff | comparison | revisions
--- a/E5XML/TemplatesWriter.py	Sat Sep 11 17:33:02 2010 +0200
+++ b/E5XML/TemplatesWriter.py	Sat Sep 11 17:36:08 2010 +0200
@@ -39,13 +39,10 @@
         # add some generation comments
         self.writeComment(" eric5 templates file ")
         self.writeComment(" Saved: {0} ".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
-##        self._write("<!-- eric5 templates file -->")
-##        self._write("<!-- Saved: {0} -->".format(time.strftime('%Y-%m-%d, %H:%M:%S')))
         
         # add the main tag
         self.writeStartElement("Templates")
         self.writeAttribute("version", templatesFileFormatVersion)
-##        self._write('<Templates version="{0}">'.format(templatesFileFormatVersion))
         
         # do the template groups
         groups = self.templatesViewer.getAllGroups()
@@ -53,8 +50,6 @@
             self.writeStartElement("TemplateGroup")
             self.writeAttribute("name", group.getName())
             self.writeAttribute("language", group.getLanguage())
-##            self._write('  <TemplateGroup name="{0}" language="{1}">'.format(
-##                        group.getName(), group.getLanguage()))
             # do the templates
             templates = group.getAllEntries()
             for template in templates:
@@ -67,13 +62,3 @@
         
         self.writeEndElement()
         self.writeEndDocument()
-##                self._write('    <Template name="{0}">'.format(
-##                    self.escape(template.getName(), True)))
-##                self._write('      <TemplateDescription>{0}</TemplateDescription>'.format(
-##                    self.escape("{0}".format(template.getDescription()))))
-##                self._write('      <TemplateText>{0}</TemplateText>'.format(
-##                    self.escape("{0}".format(template.getTemplateText()))))
-##                self._write('    </Template>')
-##            self._write('  </TemplateGroup>')
-##        
-##        self._write('</Templates>', newline = False)

eric ide

mercurial