By searching for names that only appear after "def" but nowhere else, we can find potentially unused functions.
In particular, the following functions appear to be (probably) be unused currently:
webkitpy/common/checkout/scm/git.py: add_all
webkitpy/common/checkout/scm/git.py: _deleted_files
webkitpy/common/checkout/scm/scm_mock.py: add_all
webkitpy/common/checkout/scm/scm.py: add_all
webkitpy/common/checkout/scm/scm.py: _deleted_files
webkitpy/common/checkout/scm/scm_unittest.py: _git_diff
webkitpy/common/checkout/scm/scm_unittest.py: _rmtree
webkitpy/common/checkout/scm/scm_unittest.py: _run_silent
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_add_recursively
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_delete_recursively_or_not
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_delete_recursively_or_not
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_delete_recursively
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_move_recursive
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_move_recursive
webkitpy/common/checkout/scm/scm_unittest.py: _shared_test_move
webkitpy/common/checkout/scm/scm_unittest.py: _write_binary_file
webkitpy/common/net/buildbot.py: latest_layout_test_results
webkitpy/common/net/buildbot_unittest.py: fetch_layout_test_results_with_no_responses
webkitpy/common/net/web_mock.py: select_form
webkitpy/common/system/executive_mock.py: kill_all
webkitpy/common/system/executive.py: wait_newest
webkitpy/common/system/user.py: prompt_password
webkitpy/layout_tests/layout_package/json_results_generator_unittest.py: _find_test_in_trie
webkitpy/layout_tests/models/test_expectations.py: has_pixel_failures
webkitpy/layout_tests/port/base.py: _check_port_build
webkitpy/layout_tests/port/base.py: _chromium_baseline_path
webkitpy/layout_tests/port/base.py: warn_if_bug_missing_in_test_expectations
webkitpy/layout_tests/port/base_unittest.py: _file_with_contents
webkitpy/layout_tests/port/linux.py: _check_apache_install
webkitpy/layout_tests/port/port_testcase.py: assert_servers_are_down
webkitpy/layout_tests/port/port_testcase.py: assert_servers_are_up
webkitpy/layout_tests/port/server_process_unittest.py: process_kill_time
webkitpy/layout_tests/port/win.py: _modules_to_search_for_symbols
webkitpy/layout_tests/run_webkit_tests_unittest.py: assertEmpty
webkitpy/layout_tests/run_webkit_tests_unittest.py: has_test_of_type
webkitpy/layout_tests/views/buildbot_results_unittest.py: assertEmpty
webkitpy/layout_tests/views/printing_unittest.py: assertEmpty
webkitpy/performance_tests/perftestsrunner_unittest.py: test_run_silent_test
webkitpy/style/checkers/cpp.py:get_initial_spaces_for_line
webkitpy/style/checkers/cpp.py: set_did_inside_namespace_indent_warning
webkitpy/style/checkers/cpp_unittest.py: function_body_with_blank_lines
webkitpy/style/checkers/cpp_unittest.py: verify_all_categories_are_seen
webkitpy/style/checkers/test_expectations.py: _handle_error_message
webkitpy/tool/commands/rebaseline.py: _run_webkit_patch
webkitpy/tool/servers/reflection_handler.py: _read_entity_body_as_json
webkitpy/webgl/update_webgl_conformance_tests_unittest.py: dont_strip_other_headers
Comment 1 by qyears...@chromium.org
, Dec 29 2016