File: cleanpublic.pl-dead-code

package info (click to toggle)
irssi-scripts 20070925
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,708 kB
  • ctags: 2,415
  • sloc: perl: 54,737; makefile: 43; sh: 20
file content (17 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: trunk/scripts/cleanpublic.pl
===================================================================
--- trunk.orig/scripts/cleanpublic.pl	2007-02-01 11:20:49.972310744 +0100
+++ trunk/scripts/cleanpublic.pl	2007-02-01 11:22:48.338316376 +0100
@@ -24,12 +24,6 @@ sub strip_formatting {
 		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