From cc43dc7e90edb9122c1e10f9ecb9f20d668ede67 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc <1269158832@qq.com> Date: Tue, 1 Oct 2019 15:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=9C=A8=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AF=AD=E8=A8=80=E7=BC=96=E8=AF=91=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/ide.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/judge/ide.py b/judge/ide.py index c97f74f5..b0ad1567 100644 --- a/judge/ide.py +++ b/judge/ide.py @@ -10,7 +10,6 @@ from conf.models import JudgeServer from options.options import SysOptions from utils.cache import cache from utils.constants import CacheKey -from judge.languages import _c_lang_config, _c_o2_lang_config, _cpp_lang_config, _cpp_o2_lang_config, _java_lang_config, _py2_lang_config, _py3_lang_config logger = logging.getLogger(__name__) @@ -61,23 +60,6 @@ class IDEDispatcher(object): def judge(self): if not self.test_case: raise ValueError("invalid parameter") - - ''' - if self.language == "C": - language_config = _c_lang_config - if self.language == "C With O2": - language_config = _c_o2_lang_config - if self.language == "C++": - language_config = _cpp_lang_config - if self.language == "C++ With O2": - language_config = _cpp_o2_lang_config - if self.language == "Java": - language_config = _java_lang_config - if self.language == "Python2": - language_config = _py2_lang_config - if self.language == "Python3": - language_config = _py3_lang_config - ''' sub_config = list(filter(lambda item: self.language == item["name"], SysOptions.languages))[0]