diff --git a/meshmode/discretization/poly_element.py b/meshmode/discretization/poly_element.py
index 053a4d88371395df9ef850cba0d615c0579b703b..9b830e65609e70674819fa8466d41bc65ea688b9 100644
--- a/meshmode/discretization/poly_element.py
+++ b/meshmode/discretization/poly_element.py
@@ -267,7 +267,6 @@ class PolynomialWarpAndBlendElementGroup(_MassMatrixQuadratureElementGroup):
     Uses :func:`modepy.warp_and_blend_nodes`.
     """
     def __init__(self, mesh_el_group, order):
-        from warnings import warn
         warn("PolynomialWarpAndBlendElementGroup is deprecated, since "
                 "the facial restrictions of the 3D nodes are not the 2D nodes. "
                 "It will go away in 2022. "
@@ -710,7 +709,6 @@ class TypeMappingGroupFactory(ElementGroupFactory):
 
 class OrderAndTypeBasedGroupFactory(TypeMappingGroupFactory):
     def __init__(self, order, simplex_group_class, tensor_product_group_class):
-        from warnings import warn
         warn("OrderAndTypeBasedGroupFactory is deprecated and will go away in 2023. "
                 "Use TypeMappingGroupFactory instead.",
                 DeprecationWarning, stacklevel=2)
@@ -740,7 +738,6 @@ class QuadratureSimplexGroupFactory(HomogeneousOrderBasedGroupFactory):
 
 class PolynomialWarpAndBlendGroupFactory(HomogeneousOrderBasedGroupFactory):
     def __init__(self, order):
-        from warnings import warn
         warn("PolynomialWarpAndBlendGroupFactory is deprecated, since "
                 "the facial restrictions of the 3D nodes are not the 2D nodes. "
                 "It will go away in 2022. "
diff --git a/meshmode/dof_array.py b/meshmode/dof_array.py
index b0979949880507776a2bc95561d98f86629356e3..491c40d324f8aa894531159a297b75443307b1c7 100644
--- a/meshmode/dof_array.py
+++ b/meshmode/dof_array.py
@@ -33,14 +33,11 @@ from warnings import warn
 
 import numpy as np
 
-import loopy as lp
 from arraycontext import (
     Array,
     ArrayContext,
-    ArrayOrContainerT,
     NotAnArrayContainerError,
     deserialize_container,
-    make_loopy_program,
     mapped_over_array_containers,
     multimapped_over_array_containers,
     rec_map_array_container,
@@ -49,9 +46,7 @@ from arraycontext import (
     with_array_context,
     with_container_arithmetic,
 )
-from pytools import MovedFunctionDeprecationWrapper, memoize_in, single_valued
-
-from meshmode.transform_metadata import ConcurrentDOFInameTag, ConcurrentElementInameTag
+from pytools import MovedFunctionDeprecationWrapper, single_valued
 
 
 __doc__ = """