Skip to content

Commit 01ebc7b

Browse files
committed
Removed sp load/reload/unload/list
1 parent 4f65931 commit 01ebc7b

File tree

1 file changed

+0
-31
lines changed
  • addons/source-python/packages/source-python/core/command

1 file changed

+0
-31
lines changed

addons/source-python/packages/source-python/core/command/plugin.py

-31
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# =============================================================================
66
# >> IMPORTS
77
# =============================================================================
8-
# Python Imports
9-
# Warnings
10-
from warnings import warn
118
# Source.Python Imports
129
# Commands
1310
from commands.typed import TypedServerCommand
@@ -29,50 +26,22 @@
2926
def _sp_plugin_load(command_info, plugin):
3027
"""Load a plugin."""
3128
_core_command.load_plugin(plugin)
32-
33-
@_core_command.server_sub_command(['load'])
34-
def _sp_load(command_info, plugin):
35-
"""Load a plugin."""
36-
warn('"sp load" will be removed soon. Use "sp plugin load" instead.',
37-
DeprecationWarning)
38-
_core_command.load_plugin(plugin)
3929

4030
@_core_command.server_sub_command(['plugin', 'unload'])
4131
def _sp_plugin_unload(command_info, plugin):
4232
"""Unload a plugin."""
4333
_core_command.unload_plugin(plugin)
4434

45-
@_core_command.server_sub_command(['unload'])
46-
def _sp_unload(command_info, plugin):
47-
"""Unload a plugin."""
48-
warn('"sp unload" will be removed soon. Use "sp plugin unload" instead.',
49-
DeprecationWarning)
50-
_core_command.unload_plugin(plugin)
51-
5235
@_core_command.server_sub_command(['plugin', 'reload'])
5336
def _sp_plugin_reload(command_info, plugin):
5437
"""Reload a plugin."""
5538
_core_command.reload_plugin(plugin)
5639

57-
@_core_command.server_sub_command(['reload'])
58-
def _sp_reload(command_info, plugin):
59-
"""Reload a plugin."""
60-
warn('"sp reload" will be removed soon. Use "sp plugin reload" instead.',
61-
DeprecationWarning)
62-
_core_command.reload_plugin(plugin)
63-
6440
@_core_command.server_sub_command(['plugin', 'list'])
6541
def _sp_plugin_list(command_info):
6642
"""List all currently loaded plugins."""
6743
_core_command.print_plugins()
6844

69-
@_core_command.server_sub_command(['list'])
70-
def _sp_list(command_info):
71-
"""List all currently loaded plugins."""
72-
warn('"sp list" will be removed soon. Use "sp plugin list" instead.',
73-
DeprecationWarning)
74-
_core_command.print_plugins()
75-
7645

7746
# =============================================================================
7847
# >> DESCRIPTIONS

0 commit comments

Comments
 (0)