Skip to content

Commit 6a3bc70

Browse files
committed
Use parameter_types for all special cases
1 parent b390eb6 commit 6a3bc70

File tree

3 files changed

+99
-107
lines changed

3 files changed

+99
-107
lines changed

crates/red_knot_python_semantic/src/types/call/arguments.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ impl<'a, 'db> CallArguments<'a, 'db> {
4848
pub(crate) fn iter(&self) -> impl Iterator<Item = &Argument<'a, 'db>> {
4949
self.bound_self.iter().chain(self.arguments.as_ref())
5050
}
51-
52-
/// This should only be used when evaluating known functions with special-case return values.
53-
pub(crate) fn first_argument(&self) -> Option<Type<'db>> {
54-
self.iter().next().map(Argument::argument_type)
55-
}
56-
57-
/// This should only be used when evaluating known functions with special-case return values.
58-
pub(crate) fn second_argument(&self) -> Option<Type<'db>> {
59-
self.iter().nth(1).map(Argument::argument_type)
60-
}
61-
62-
/// This should only be used when evaluating known functions with special-case return values.
63-
pub(crate) fn third_argument(&self) -> Option<Type<'db>> {
64-
self.iter().nth(2).map(Argument::argument_type)
65-
}
6651
}
6752

6853
impl<'a, 'db> FromIterator<Argument<'a, 'db>> for CallArguments<'a, 'db> {

0 commit comments

Comments
 (0)