prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Remove obsolete 'bin/st2-check-license'
  The project ships https://github.com/StackStorm/st2/blob/master/st2common/bin/st2-check-license which is irrelevant now, considering ongoing EWC features integration in the st2 core.
  
  The task is to find all the places: https://github.com/search?q=org%3AStackStorm+st2-check-license&type=code and remove the `st2-check-license` scripts.
  
  This is an easy `good first issue` for someone willing to start contributing and exploring the st2 system.
  Bonus points to find other obsolete, outdated, irrelevant scripts in st2 core.
  Help wanted!
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `st2common/setup.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 # Copyright 2020 The StackStorm Authors.
  3 # Copyright 2019 Extreme Networks, Inc.
  4 #
  5 # Licensed under the Apache License, Version 2.0 (the "License");
  6 # you may not use this file except in compliance with the License.
  7 # You may obtain a copy of the License at
  8 #
  9 #     http://www.apache.org/licenses/LICENSE-2.0
  10 #
  11 # Unless required by applicable law or agreed to in writing, software
  12 # distributed under the License is distributed on an "AS IS" BASIS,
  13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14 # See the License for the specific language governing permissions and
  15 # limitations under the License.
  16 
  17 from __future__ import absolute_import
  18 import os.path
  19 
  20 from setuptools import setup, find_packages
  21 
  22 from dist_utils import fetch_requirements
  23 from dist_utils import apply_vagrant_workaround
  24 from dist_utils import get_version_string
  25 
  26 ST2_COMPONENT = 'st2common'
  27 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
  28 REQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt')
  29 INIT_FILE = os.path.join(BASE_DIR, 'st2common/__init__.py')
  30 
  31 install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)
  32 
  33 apply_vagrant_workaround()
  34 setup(
  35     name=ST2_COMPONENT,
  36     version=get_version_string(INIT_FILE),
  37     description='{} StackStorm event-driven automation platform component'.format(ST2_COMPONENT),
  38     author='StackStorm',
  39     author_email='info@stackstorm.com',
  40     license='Apache License (2.0)',
  41     url='https://stackstorm.com/',
  42     install_requires=install_reqs,
  43     dependency_links=dep_links,
  44     test_suite=ST2_COMPONENT,
  45     zip_safe=False,
  46     include_package_data=True,
  47     packages=find_packages(exclude=['setuptools', 'tests']),
  48     scripts=[
  49         'bin/st2-bootstrap-rmq',
  50         'bin/st2-cleanup-db',
  51         'bin/st2-register-content',
  52         'bin/st2-purge-executions',
  53         'bin/st2-purge-trigger-instances',
  54         'bin/st2-run-pack-tests',
  55         'bin/st2ctl',
  56         'bin/st2-generate-symmetric-crypto-key',
  57         'bin/st2-self-check',
  58         'bin/st2-track-result',
  59         'bin/st2-validate-pack-config',
  60         'bin/st2-check-license',
  61         'bin/st2-pack-install',
  62         'bin/st2-pack-download',
  63         'bin/st2-pack-setup-virtualenv'
  64     ],
  65     entry_points={
  66         'st2common.metrics.driver': [
  67             'statsd = st2common.metrics.drivers.statsd_driver:StatsdDriver',
  68             'noop = st2common.metrics.drivers.noop_driver:NoopDriver',
  69             'echo = st2common.metrics.drivers.echo_driver:EchoDriver'
  70         ],
  71         'st2common.rbac.backend': [
  72             'noop = st2common.rbac.backends.noop:NoOpRBACBackend'
  73         ],
  74     }
  75 )
  76
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/st2common/setup.py b/st2common/setup.py
  --- a/st2common/setup.py
  +++ b/st2common/setup.py
  @@ -57,7 +57,6 @@
           'bin/st2-self-check',
           'bin/st2-track-result',
           'bin/st2-validate-pack-config',
  -        'bin/st2-check-license',
           'bin/st2-pack-install',
           'bin/st2-pack-download',
           'bin/st2-pack-setup-virtualenv'
  
verification_info: {"golden_diff": "diff --git a/st2common/setup.py b/st2common/setup.py\n--- a/st2common/setup.py\n+++ b/st2common/setup.py\n@@ -57,7 +57,6 @@\n         'bin/st2-self-check',\n         'bin/st2-track-result',\n         'bin/st2-validate-pack-config',\n-        'bin/st2-check-license',\n         'bin/st2-pack-install',\n         'bin/st2-pack-download',\n         'bin/st2-pack-setup-virtualenv'\n", "issue": "Remove obsolete 'bin/st2-check-license'\nThe project ships https://github.com/StackStorm/st2/blob/master/st2common/bin/st2-check-license which is irrelevant now, considering ongoing EWC features integration in the st2 core.\r\n\r\nThe task is to find all the places: https://github.com/search?q=org%3AStackStorm+st2-check-license&type=code and remove the `st2-check-license` scripts.\r\n\r\nThis is an easy `good first issue` for someone willing to start contributing and exploring the st2 system.\r\nBonus points to find other obsolete, outdated, irrelevant scripts in st2 core.\r\nHelp wanted!\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom __future__ import absolute_import\nimport os.path\n\nfrom setuptools import setup, find_packages\n\nfrom dist_utils import fetch_requirements\nfrom dist_utils import apply_vagrant_workaround\nfrom dist_utils import get_version_string\n\nST2_COMPONENT = 'st2common'\nBASE_DIR = os.path.dirname(os.path.abspath(__file__))\nREQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt')\nINIT_FILE = os.path.join(BASE_DIR, 'st2common/__init__.py')\n\ninstall_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)\n\napply_vagrant_workaround()\nsetup(\n    name=ST2_COMPONENT,\n    version=get_version_string(INIT_FILE),\n    description='{} StackStorm event-driven automation platform component'.format(ST2_COMPONENT),\n    author='StackStorm',\n    author_email='info@stackstorm.com',\n    license='Apache License (2.0)',\n    url='https://stackstorm.com/',\n    install_requires=install_reqs,\n    dependency_links=dep_links,\n    test_suite=ST2_COMPONENT,\n    zip_safe=False,\n    include_package_data=True,\n    packages=find_packages(exclude=['setuptools', 'tests']),\n    scripts=[\n        'bin/st2-bootstrap-rmq',\n        'bin/st2-cleanup-db',\n        'bin/st2-register-content',\n        'bin/st2-purge-executions',\n        'bin/st2-purge-trigger-instances',\n        'bin/st2-run-pack-tests',\n        'bin/st2ctl',\n        'bin/st2-generate-symmetric-crypto-key',\n        'bin/st2-self-check',\n        'bin/st2-track-result',\n        'bin/st2-validate-pack-config',\n        'bin/st2-check-license',\n        'bin/st2-pack-install',\n        'bin/st2-pack-download',\n        'bin/st2-pack-setup-virtualenv'\n    ],\n    entry_points={\n        'st2common.metrics.driver': [\n            'statsd = st2common.metrics.drivers.statsd_driver:StatsdDriver',\n            'noop = st2common.metrics.drivers.noop_driver:NoopDriver',\n            'echo = st2common.metrics.drivers.echo_driver:EchoDriver'\n        ],\n        'st2common.rbac.backend': [\n            'noop = st2common.rbac.backends.noop:NoOpRBACBackend'\n        ],\n    }\n)\n", "path": "st2common/setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom __future__ import absolute_import\nimport os.path\n\nfrom setuptools import setup, find_packages\n\nfrom dist_utils import fetch_requirements\nfrom dist_utils import apply_vagrant_workaround\nfrom dist_utils import get_version_string\n\nST2_COMPONENT = 'st2common'\nBASE_DIR = os.path.dirname(os.path.abspath(__file__))\nREQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt')\nINIT_FILE = os.path.join(BASE_DIR, 'st2common/__init__.py')\n\ninstall_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)\n\napply_vagrant_workaround()\nsetup(\n    name=ST2_COMPONENT,\n    version=get_version_string(INIT_FILE),\n    description='{} StackStorm event-driven automation platform component'.format(ST2_COMPONENT),\n    author='StackStorm',\n    author_email='info@stackstorm.com',\n    license='Apache License (2.0)',\n    url='https://stackstorm.com/',\n    install_requires=install_reqs,\n    dependency_links=dep_links,\n    test_suite=ST2_COMPONENT,\n    zip_safe=False,\n    include_package_data=True,\n    packages=find_packages(exclude=['setuptools', 'tests']),\n    scripts=[\n        'bin/st2-bootstrap-rmq',\n        'bin/st2-cleanup-db',\n        'bin/st2-register-content',\n        'bin/st2-purge-executions',\n        'bin/st2-purge-trigger-instances',\n        'bin/st2-run-pack-tests',\n        'bin/st2ctl',\n        'bin/st2-generate-symmetric-crypto-key',\n        'bin/st2-self-check',\n        'bin/st2-track-result',\n        'bin/st2-validate-pack-config',\n        'bin/st2-pack-install',\n        'bin/st2-pack-download',\n        'bin/st2-pack-setup-virtualenv'\n    ],\n    entry_points={\n        'st2common.metrics.driver': [\n            'statsd = st2common.metrics.drivers.statsd_driver:StatsdDriver',\n            'noop = st2common.metrics.drivers.noop_driver:NoopDriver',\n            'echo = st2common.metrics.drivers.echo_driver:EchoDriver'\n        ],\n        'st2common.rbac.backend': [\n            'noop = st2common.rbac.backends.noop:NoOpRBACBackend'\n        ],\n    }\n)\n", "path": "st2common/setup.py"}]}