[geany/geany] 8033e2: Remove commented-out code

Matthew Brush git-noreply at xxxxx
Tue Feb 16 05:52:09 UTC 2016


Branch:      refs/heads/master
Author:      Matthew Brush <mbrush at codebrainz.ca>
Committer:   Thomas Martitz <kugel at rockbox.org>
Date:        Tue, 16 Feb 2016 05:52:09 UTC
Commit:      8033e2618010a5ae67e456cf39222a4ba6af8ebd
             https://github.com/geany/geany/commit/8033e2618010a5ae67e456cf39222a4ba6af8ebd

Log Message:
-----------
Remove commented-out code


Modified Paths:
--------------
    scripts/gen-api-gtkdoc.py

Modified: scripts/gen-api-gtkdoc.py
5 lines changed, 0 insertions(+), 5 deletions(-)
===================================================================
@@ -53,10 +53,8 @@ def __init__(self):
     def cb(self, type, str):
         if (type == "param"):
             words = str.split(" ", 2);
-            #~ self.params.append(GtkDocParam.new(words[0], words[1].rstrip, self.annot))
             self.annot = []
         elif (type == "return"):
-            #~ self.retval = GtkDocReturn.new(str.rstrip, self.annot)
             self.annot = []
         elif (type == "since"):
             self.since = str.rstrip()
@@ -105,7 +103,6 @@ def stringify_children(node):
         return "".join(filter(None, parts))
 
     def get_program_listing(self, xml):
-        #~ return "--- CODE ---"
         from lxml.etree import tostring
         arr = ["", "|[<!-- language=\"C\" -->"]
         for l in xml.getchildren():
@@ -113,8 +110,6 @@ def get_program_listing(self, xml):
                 # a codeline is of the form
                 # <highlight class="normal">GeanyDocument<sp/>*doc<sp/>=<sp/>...;</highlight>
                 # <sp/> tags must be replaced with spaces, then just use the text
-                #~ html = self.stringify_children(l)
-                #~ print(etree.HTML(html))
                 h = l.find("highlight")
                 if h is not None:
                     html = tostring(h).decode("utf-8")



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list