Skip to content

Commit df831d7

Browse files
committed
Remove unused function
1 parent 42f4bd8 commit df831d7

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

ext/enumerable/statistics/extension/statistics.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -131,28 +131,6 @@ complex_new(VALUE klass, VALUE real, VALUE imag)
131131
return (VALUE)obj;
132132
}
133133

134-
static VALUE
135-
complex_caonicalize_new(VALUE klass, VALUE real, VALUE imag)
136-
{
137-
if (f_real_p(real) && f_real_p(imag))
138-
return complex_new(klass, real, imag);
139-
else if (f_real_p(imag)) {
140-
VALUE new_imag;
141-
142-
new_imag = f_add(RCOMPLEX(real)->imag, imag);
143-
144-
return complex_new(klass, RCOMPLEX(real)->real, new_imag);
145-
}
146-
else {
147-
VALUE new_real, new_imag;
148-
149-
new_real = f_sub(RCOMPLEX(real)->real, RCOMPLEX(imag)->imag);
150-
new_imag = f_add(RCOMPLEX(real)->imag, RCOMPLEX(imag)->real);
151-
152-
return complex_new(klass, new_real, new_imag);
153-
}
154-
}
155-
156134
static VALUE
157135
complex_add(VALUE self, VALUE other)
158136
{

0 commit comments

Comments
 (0)