mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Delete unused variables and unreachable statements. #1834
This commit is contained in:
@@ -353,7 +353,6 @@ class NmapOutputViewer (gtk.VBox):
|
||||
|
||||
# Seek to the end of the most recent read.
|
||||
self.command_execution.stdout_file.seek(self.output_file_pointer)
|
||||
pos = self.command_execution.stdout_file.tell()
|
||||
|
||||
try:
|
||||
new_output = self.command_execution.stdout_file.read()
|
||||
@@ -362,8 +361,6 @@ class NmapOutputViewer (gtk.VBox):
|
||||
return
|
||||
|
||||
self.output_file_pointer = self.command_execution.stdout_file.tell()
|
||||
# print "read %d -> %d %d" % (
|
||||
# pos, self.output_file_pointer, len(new_output))
|
||||
|
||||
v_adj = self.scrolled.get_vadjustment()
|
||||
if new_output and v_adj is not None:
|
||||
|
||||
@@ -374,7 +374,6 @@ class OptionTab(object):
|
||||
return label_widget, option_list_widget
|
||||
|
||||
def __parse_option_check(self, option_check):
|
||||
arg_type = option_check.getAttribute(u'arg_type')
|
||||
option = option_check.getAttribute(u'option')
|
||||
label = _(option_check.getAttribute(u'label'))
|
||||
short_desc = _(option_check.getAttribute(u'short_desc'))
|
||||
|
||||
@@ -283,7 +283,6 @@ class HIGSpinnerCache:
|
||||
def load_static_from_lookup(self, icon_name="gnome-spinner-rest",
|
||||
key_name=None):
|
||||
icon_info = self.icon_theme.lookup_icon(icon_name, -1, 0)
|
||||
size = icon_info.get_base_size()
|
||||
filename = icon_info.get_filename()
|
||||
|
||||
# Now that we have a filename, call load_static_from_filename()
|
||||
|
||||
Reference in New Issue
Block a user