mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 20:39:00 +08:00
Remove dead code.
This commit is contained in:
parent
025c3a1b07
commit
772ee033e0
@ -184,7 +184,6 @@ sub new {
|
|||||||
my $class = shift;
|
my $class = shift;
|
||||||
my $self = $class->SUPER::new(@_);
|
my $self = $class->SUPER::new(@_);
|
||||||
|
|
||||||
$self->{_changed} = 0;
|
|
||||||
$self->{busy} = 0;
|
$self->{busy} = 0;
|
||||||
$self->{timer} = Wx::Timer->new($self);
|
$self->{timer} = Wx::Timer->new($self);
|
||||||
$self->{prog} = Wx::Gauge->new($self, wxGA_HORIZONTAL, 100, wxDefaultPosition, wxDefaultSize);
|
$self->{prog} = Wx::Gauge->new($self, wxGA_HORIZONTAL, 100, wxDefaultPosition, wxDefaultSize);
|
||||||
@ -220,7 +219,6 @@ sub _Reposition {
|
|||||||
2 => $self->{prog},
|
2 => $self->{prog},
|
||||||
);
|
);
|
||||||
|
|
||||||
##if ($self->{_changed}) {
|
|
||||||
foreach (keys %fields) {
|
foreach (keys %fields) {
|
||||||
my $rect = $self->GetFieldRect($_);
|
my $rect = $self->GetFieldRect($_);
|
||||||
my $offset = &Wx::wxGTK ? 1 : 0; # add a cosmetic 1 pixel offset on wxGTK
|
my $offset = &Wx::wxGTK ? 1 : 0; # add a cosmetic 1 pixel offset on wxGTK
|
||||||
@ -228,14 +226,11 @@ sub _Reposition {
|
|||||||
$fields{$_}->Move($pos);
|
$fields{$_}->Move($pos);
|
||||||
$fields{$_}->SetSize($rect->GetWidth - $offset, $rect->GetHeight);
|
$fields{$_}->SetSize($rect->GetWidth - $offset, $rect->GetHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{_changed} = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub OnSize {
|
sub OnSize {
|
||||||
my ($self, $event) = @_;
|
my ($self, $event) = @_;
|
||||||
|
|
||||||
$self->{_changed} = 1;
|
|
||||||
$self->_Reposition;
|
$self->_Reposition;
|
||||||
$event->Skip;
|
$event->Skip;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user