Skip to content

Commit

Permalink
Remove unused ConditionalValue.set_value
Browse files Browse the repository at this point in the history
This is by all appearances unused, with no other matches for "set_value"
in the code base.

This removal brings along with it a use of six.ensure_text.

Part of web-platform-tests#28776.
  • Loading branch information
foolip committed Mar 31, 2022
1 parent f8e6050 commit 902b178
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import operator
from six import ensure_text

from ..node import NodeVisitor, DataNode, ConditionalNode, KeyValueNode, ListNode, ValueNode, BinaryExpressionNode, VariableNode
from ..parser import parse
Expand Down Expand Up @@ -42,9 +41,6 @@ def value(self, value):
def __call__(self, run_info):
return self.condition_func(run_info)

def set_value(self, value):
self.value = ensure_text(value)

def value_as(self, type_func):
"""Get value and convert to a given type.
Expand Down

0 comments on commit 902b178

Please sign in to comment.