Kamil Kisiel  committed aa32c58

Import and dead code cleanups

  • Participants
  • Parent commits d68be3b

Comments (0)

Files changed (1)

File tracmath/

 import re
 from cStringIO import StringIO
 import os
-import sys
-from genshi.builder import tag
-from trac.core import *
+from trac.core import Component, implements
 from import IWikiMacroProvider
 from import IWikiSyntaxProvider
-from trac.mimeview.api import IHTMLPreviewRenderer, MIME_MAP
+from trac.mimeview.api import IHTMLPreviewRenderer
 from trac.web import IRequestHandler
 from trac.util import escape
-from import wiki_to_oneliner
 from trac import mimeview
 __author__ = 'Reza Lotun'
         return buf
     # IWikiSyntaxProvider methods
-    def get_wiki_syntax(self):
-        def format(formatter, ns, match):
-            return self.internal_render(formatter.req,'latex',
-        yield (r"\$[^$]+\$", format)
-    def get_link_resolvers(self):
-        return []
-    # IWikiSyntaxProvider methods
     #   stolen from
     def get_wiki_syntax(self):
     def render(self, req, mimetype, content, filename=None, url=None):
         text = hasattr(content, 'read') and or content
-        return self.internal_render(req, name, text)
+        return self.internal_render(req, 'latex', text)
     # IRequestHandler methods
     def match_request(self, req):