From 9863a2ef53e6512f862887e04c9d5f208ffc683e Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 9 Apr 2022 17:48:57 +0200 Subject: [PATCH] Remove dead code. --- changelogs/fragments/1-cleanup.yml | 2 ++ src/antsibull_core/logging.py | 16 +--------------- 2 files changed, 3 insertions(+), 15 deletions(-) create mode 100644 changelogs/fragments/1-cleanup.yml diff --git a/changelogs/fragments/1-cleanup.yml b/changelogs/fragments/1-cleanup.yml new file mode 100644 index 0000000..a6ac401 --- /dev/null +++ b/changelogs/fragments/1-cleanup.yml @@ -0,0 +1,2 @@ +minor_changes: + - "Remove unused code (https://github.com/ansible-community/antsibull-core/pull/1)." diff --git a/src/antsibull_core/logging.py b/src/antsibull_core/logging.py index 858f4b0..9c94012 100644 --- a/src/antsibull_core/logging.py +++ b/src/antsibull_core/logging.py @@ -219,20 +219,6 @@ def run(args): mlog.debug('logging loaded') -def plugin_filter(): - """ - Filter out messages which come from plugin error output. - - :arg msg: A :twiggy:obj:`twiggy.message.Message` object which would be filtered - """ - def wrapped(msg): - return ( - msg.fields['func'] == 'write_plugin_rst' and - msg.fields['mod'] == 'antsibull.write_docs' - ) - return wrapped - - def initialize_app_logging(): """ Change log settings to make sense for an application. @@ -251,4 +237,4 @@ def initialize_app_logging(): twiggy.quick_setup(min_level=_level) -__all__ = ('log', 'initialize_app_logging', 'plugin_filter') +__all__ = ('log', 'initialize_app_logging')