Skip to content

Commit c986574

Browse files
authored
[file_packager] Remove --plugin flag (#24981)
This was undocumented and untested and I believe dates back to when the file loading plugins were part of the file package before a97aab0.
1 parent 4e45121 commit c986574

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tools/file_packager.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ def main(): # noqa: C901, PLR0912, PLR0915
370370

371371
data_target = args[0]
372372
data_files = []
373-
plugins = []
374373
leading = ''
375374

376375
for arg in args[1:]:
@@ -427,10 +426,6 @@ def main(): # noqa: C901, PLR0912, PLR0915
427426
leading = ''
428427
elif arg == '--quiet':
429428
options.quiet = True
430-
elif arg.startswith('--plugin'):
431-
plugin = utils.read_file(arg.split('=', 1)[1])
432-
eval(plugin) # should append itself to plugins
433-
leading = ''
434429
elif leading in {'preload', 'embed'}:
435430
mode = leading
436431
# position of @ if we're doing 'src@dst'. '__' is used to keep the index
@@ -557,11 +552,6 @@ def was_seen(name):
557552
data_files = sorted(data_files, key=lambda file_: file_.dstpath)
558553
data_files = [file_ for file_ in data_files if not was_seen(file_.dstpath)]
559554

560-
# Apply plugins
561-
for file_ in data_files:
562-
for plugin in plugins:
563-
plugin(file_)
564-
565555
metadata = {'files': []}
566556

567557
if options.obj_output:

0 commit comments

Comments
 (0)