File: cleanpublic.pl-dead-code.diff

package info (click to toggle)
irssi-scripts 20231031
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,120 kB
  • sloc: perl: 73,010; sh: 193; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Remove dead code
Forwarded: yes
Author: Florian Ernst <florian@debian.org>
Last-Update: 2005-02-03
--- a/scripts/cleanpublic.pl
+++ b/scripts/cleanpublic.pl
@@ -24,12 +24,6 @@
 		if ($target eq $chan) { return }
 	}
 	
-	# Ruthlessly_ripped_from_Garion {
-	my $twin = Irssi::window_find_name($target);
-	# Beam it to window 1 if we cant find any other suitable target.
-	if (!defined($twin)) { $twin = Irssi::window_find_refnum(1); }
-	# }
-	
 	# Remove formatting
 	$data =~ s/\x03\d?\d?(,\d?\d?)?|\x02|\x1f|\x16|\x06|\x07//g;
 	# Let it flow