Ver Fonte

Unused vars

Zachary Kotlarek há 12 anos atrás
pai
commit
e8ba7aced3
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      dmx/announce.pl

+ 1 - 3
dmx/announce.pl

@@ -34,14 +34,12 @@ DMX::stateSubscribe($STATE_SOCK);
 # Loop forever
 while (1) {
 
-	# State is calculated; use newState to gather data
-	my $newState = $state;
+	# Remember the last state, for comparison
 	%last = %exists;
 
 	# Wait for state updates
 	my $cmdState = DMX::readState($DELAY, \%exists, undef(), undef());
 	if (defined($cmdState)) {
-		$newState = $cmdState;
 		$pullLast = time();
 	}