Skip to content

Commit 84d6e65

Browse files
committed
drop unused graph arg from to*_graph
1 parent 7c2ea70 commit 84d6e65

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sub PDL::Graphics::TriD::Object::togl { $_->togl for @{$_[0]->{Objects}} }
5555
sub PDL::Graphics::TriD::Graph::togl {
5656
my($this) = @_;
5757
$this->{Axis}{$_}->togl($this) for grep $_ ne "Default", keys %{$this->{Axis}};
58-
$this->{Data}{$_}->togl_graph($this,$this->get_points($_)) for keys %{$this->{Data}};
58+
$this->{Data}{$_}->togl_graph($this->get_points($_)) for keys %{$this->{Data}};
5959
}
6060

6161
use PDL;
@@ -143,10 +143,10 @@ sub PDL::Graphics::TriD::GObject::togl {
143143
$_[0]->gdraw($_[0]->{Points});
144144
}
145145

146-
# (this,graphs,points)
146+
# (this,points)
147147
sub PDL::Graphics::TriD::GObject::togl_graph {
148148
print "togl_graph $_[0]\n" if $PDL::Graphics::TriD::verbose;
149-
$_[0]->gdraw($_[2]);
149+
$_[0]->gdraw($_[1]);
150150
}
151151

152152
sub PDL::Graphics::TriD::Points::gdraw {

lib/PDL/Graphics/TriD/VRML.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ sub PDL::Graphics::TriD::GObject::tovrml {
159159
}
160160

161161
sub PDL::Graphics::TriD::GObject::tovrml_graph {
162-
return $_[0]->vdraw($_[2]);
162+
return $_[0]->vdraw($_[1]);
163163
}
164164

165165
sub PDL::Graphics::TriD::Points::vdraw {
@@ -287,7 +287,7 @@ sub PDL::Graphics::TriD::Graph::tovrml {
287287
}
288288
for(sort keys %{$this->{Data}}) {
289289
push @children,
290-
$this->{Data}{$_}->tovrml_graph($this,$this->get_points($_));
290+
$this->{Data}{$_}->tovrml_graph($this->get_points($_));
291291
}
292292
return vrn('Group', 'children' => [@children]);
293293
}

0 commit comments

Comments
 (0)