Skip to content

Commit

Permalink
Remove print statements, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
askurihin authored and a.sk committed Apr 10, 2012
1 parent b9a8da4 commit 7437e34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions livecss/colorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def colorize_file(view, state, forse_redraw=False):
"""Highlights color definition regions by it's real colors.
forse_redraw setted to True forces recolorization
`forse_redraw` set to True forces re-colorization
"""

Expand All @@ -31,13 +31,11 @@ def colorize_file(view, state, forse_redraw=False):
state.regions = colored_regions

if not state.is_dirty and not forse_redraw:
print "State is clean"
return

highlight_regions(view, colored_regions, colors, state)

if forse_redraw or state.need_generate_theme_file:
print "Regenerating theme"
colorized_theme_path = generate_theme(uncolorized_path(theme.abspath), colors)
theme.set(colorized_theme_path)

Expand Down
2 changes: 0 additions & 2 deletions livecss/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ def set(cls, theme_path):
:param theme: abs or relpath to SUBLIME_PATH
"""
if exists(theme_path):
print "Setting theme"
cls._settings.set('color_scheme', theme_path)

def on_select_new_theme(cls, callback):
print "Registering callback"
cls._settings.add_on_change('color_scheme', callback)


Expand Down

0 comments on commit 7437e34

Please sign in to comment.