Cleanup: unused imports

This commit is contained in:
Campbell Barton 2019-03-14 15:14:43 +11:00
parent c567dd5ad9
commit 0bd45a2d51
28 changed files with 4 additions and 35 deletions

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Panel from bpy.types import Panel

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Panel from bpy.types import Panel

@ -20,9 +20,6 @@
import bpy import bpy
from bpy.types import Menu, Panel, UIList from bpy.types import Menu, Panel, UIList
from rna_prop_ui import PropertyPanel from rna_prop_ui import PropertyPanel
from .properties_grease_pencil_common import (
GPENCIL_UL_layer,
)
############################### ###############################
# Base-Classes (for shared stuff - e.g. poll, attributes, etc.) # Base-Classes (for shared stuff - e.g. poll, attributes, etc.)

@ -18,7 +18,7 @@
# <pep8 compliant> # <pep8 compliant>
import bpy import bpy
from bpy.types import Menu, Panel from bpy.types import Panel
from rna_prop_ui import PropertyPanel from rna_prop_ui import PropertyPanel

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Panel from bpy.types import Panel

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Panel from bpy.types import Panel

@ -21,7 +21,6 @@
# panels get subclassed (not registered directly) # panels get subclassed (not registered directly)
# menus are referenced `as is` # menus are referenced `as is`
import bpy
from bpy.types import Menu, UIList from bpy.types import Menu, UIList

@ -20,7 +20,6 @@
import bpy import bpy
from bpy.types import Menu, Panel, UIList from bpy.types import Menu, Panel, UIList
from rna_prop_ui import PropertyPanel from rna_prop_ui import PropertyPanel
from bpy.app.translations import pgettext_iface as iface_
from bpy_extras.node_utils import find_node_input from bpy_extras.node_utils import find_node_input

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
) )

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
UIList, UIList,

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
) )

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
) )

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
) )

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import ( from bpy.types import (
Panel, Panel,
) )

@ -18,8 +18,7 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy from bpy.types import Panel
from bpy.types import Menu, Panel, UIList
from .space_view3d import ( from .space_view3d import (
VIEW3D_PT_shading_lighting, VIEW3D_PT_shading_lighting,
VIEW3D_PT_shading_color, VIEW3D_PT_shading_color,

@ -17,8 +17,7 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy from bpy.types import Panel
from bpy.types import Panel, UIList
class ViewLayerButtonsPanel: class ViewLayerButtonsPanel:

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header, Panel, Menu, UIList from bpy.types import Header, Panel, Menu, UIList

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel from bpy.types import Header, Menu, Panel
from .space_dopesheet import ( from .space_dopesheet import (
DopesheetFilterPopoverBase, DopesheetFilterPopoverBase,

@ -18,8 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
import math
from bpy.types import ( from bpy.types import (
Header, Header,
Menu, Menu,

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header, Menu from bpy.types import Header, Menu

@ -18,7 +18,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel from bpy.types import Header, Menu, Panel
from .space_dopesheet import ( from .space_dopesheet import (
DopesheetFilterPopoverBase, DopesheetFilterPopoverBase,

@ -23,7 +23,6 @@ from bpy.types import Header, Menu, Panel
from bpy.app.translations import pgettext_iface as iface_ from bpy.app.translations import pgettext_iface as iface_
from bl_ui.utils import PresetPanel from bl_ui.utils import PresetPanel
from .properties_grease_pencil_common import ( from .properties_grease_pencil_common import (
AnnotationDrawingToolsPanel,
AnnotationDataPanel, AnnotationDataPanel,
GreasePencilToolsPanel, GreasePencilToolsPanel,
) )

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header, Panel from bpy.types import Header, Panel

@ -17,7 +17,6 @@
# ##### END GPL LICENSE BLOCK ##### # ##### END GPL LICENSE BLOCK #####
# <pep8 compliant> # <pep8 compliant>
import bpy
from bpy.types import Header from bpy.types import Header

@ -116,7 +116,7 @@ def from_dict(kw_args):
kw.update(kw_args) kw.update(kw_args)
keymap = kw["keymap"] keymap = kw["keymap"]
if kw["keymap"] is None: if keymap is None:
pass pass
elif type(keymap) is tuple: elif type(keymap) is tuple:
keymap = [_keymap_fn_from_seq(keymap)] keymap = [_keymap_fn_from_seq(keymap)]

@ -19,9 +19,6 @@
# <pep8 compliant> # <pep8 compliant>
import bpy import bpy
from bpy.types import Header, Menu, Panel from bpy.types import Header, Menu, Panel
from .properties_grease_pencil_common import (
GPENCIL_UL_layer,
)
class TOPBAR_HT_upper_bar(Header): class TOPBAR_HT_upper_bar(Header):

@ -601,7 +601,6 @@ class USERPREF_PT_viewport_quality(PreferencePanel, Panel):
return (prefs.active_section == 'VIEWPORT') return (prefs.active_section == 'VIEWPORT')
def draw_props(self, context, layout): def draw_props(self, context, layout):
import sys
prefs = context.preferences prefs = context.preferences
system = prefs.system system = prefs.system

@ -5359,7 +5359,6 @@ class VIEW3D_PT_gpencil_guide(Panel):
bl_label = "Guides" bl_label = "Guides"
def draw(self, context): def draw(self, context):
from math import pi
settings = context.tool_settings.gpencil_sculpt.guide settings = context.tool_settings.gpencil_sculpt.guide
layout = self.layout layout = self.layout