Explorar o código

Removed a bunch of unused imports.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
b04cf62cc1
Modificáronse 5 ficheiros con 5 adicións e 12 borrados
  1. 0 2
      src/rules/derivatives.py
  2. 2 2
      src/rules/fractions.py
  3. 2 4
      src/rules/goniometry.py
  4. 0 1
      src/rules/numerics.py
  5. 1 3
      src/rules/sort.py

+ 0 - 2
src/rules/derivatives.py

@@ -1,5 +1,3 @@
-from itertools import combinations
-
 from .utils import find_variables
 from .logarithmic import ln
 from .goniometry import sin, cos

+ 2 - 2
src/rules/fractions.py

@@ -1,8 +1,8 @@
 from itertools import combinations, product
 
 from .utils import least_common_multiple, partition
-from ..node import ExpressionLeaf as L, Scope, negate, OP_DIV, OP_ADD, \
-        OP_MUL, OP_POW, nary_node, negate
+from ..node import ExpressionLeaf as L, Scope, OP_DIV, OP_ADD, OP_MUL, \
+        OP_POW, nary_node, negate
 from ..possibilities import Possibility as P, MESSAGES
 from ..translate import _
 

+ 2 - 4
src/rules/goniometry.py

@@ -1,7 +1,5 @@
-from .utils import is_fraction
-from ..node import ExpressionNode as N, ExpressionLeaf as L, Scope, OP_ADD, \
-        OP_POW, OP_MUL, OP_DIV, OP_SIN, OP_COS, OP_TAN, OP_SQRT, PI, \
-        TYPE_OPERATOR
+from ..node import ExpressionNode as N, ExpressionLeaf as L, OP_ADD, OP_MUL, \
+        OP_DIV, OP_SIN, OP_COS, OP_TAN, OP_SQRT, PI, TYPE_OPERATOR
 from ..possibilities import Possibility as P, MESSAGES
 from ..translate import _
 

+ 0 - 1
src/rules/numerics.py

@@ -99,7 +99,6 @@ def match_divide_numerics(node):
     assert node.is_op(OP_DIV)
 
     n, d = node
-    divide = False
     nv, dv = n.value, d.value
 
     if n.is_int() and d.is_int():

+ 1 - 3
src/rules/sort.py

@@ -1,6 +1,4 @@
-from itertools import product, combinations
-
-from ..node import Scope, OP_ADD, OP_MUL
+from ..node import Scope, OP_MUL
 from ..possibilities import Possibility as P, MESSAGES
 from ..translate import _