Remove dead code in get_foreground_color().

This commit is contained in:
auouymous 2021-10-13 15:34:26 -06:00
parent 69e242184c
commit 8d0bfce460
1 changed files with 0 additions and 2 deletions

View File

@ -403,8 +403,6 @@ def get_foreground_color(state=Gtk.StateFlags.NORMAL, widget=Gtk.TreeView()):
"""
p = widget
color = Gdk.RGBA(0, 0, 0, 0)
style_context = widget.get_style_context()
foreground = style_context.get_color(state)
while p is not None and color.alpha == 0:
style_context = p.get_style_context()
color = style_context.get_color(state)