[master] b41d04a99 GC unused option

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Dec 6 15:48:06 UTC 2019


commit b41d04a9983b95111e468a481c62380662499156
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Dec 6 16:43:13 2019 +0100

    GC unused option

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index a556d9035..6ed98632e 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -38,7 +38,6 @@ import os
 import sys
 import re
 import optparse
-import unittest
 import copy
 import json
 import hashlib
@@ -1166,16 +1165,8 @@ if __name__ == "__main__":
     oparser.add_option('-w', '--rstdir', metavar="directory", default='.',
                        help='Where to save the generated RST files ' +
                        '(default: ".")')
-    oparser.add_option('', '--runtests', action='store_true', default=False,
-                       dest="runtests", help=optparse.SUPPRESS_HELP)
     (opts, args) = oparser.parse_args()
 
-    if opts.runtests:
-        # Pop off --runtests, pass remaining to unittest.
-        del sys.argv[1]
-        unittest.main()
-        exit()
-
     i_vcc = None
     if len(args) == 1 and os.path.exists(args[0]):
         i_vcc = args[0]


More information about the varnish-commit mailing list