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