From: David Gageot Date: Fri, 6 Jul 2012 10:49:29 +0000 (+0200) Subject: SONAR-3432 unused code X-Git-Tag: 3.2~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fdd726cbd6058b17646ee99f22647dc096d07e7a;p=sonarqube.git SONAR-3432 unused code --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb index cfb5d27d028..f287fd20330 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb @@ -50,20 +50,6 @@ module RulesConfigurationHelper property_value 'value', property_type_for_param_type(parameter.param_type), value, {:id => parameter.id}.update(options) end - def input_size(type) - return 15 if type == PARAM_TYPE_STRING - return 15 if type == PARAM_TYPE_STRING_LIST - return 8 if type == PARAM_TYPE_INTEGER - return 8 if type == PARAM_TYPE_INTEGER_LIST - return 4 if type == PARAM_TYPE_BOOLEAN - return 15 if type == PARAM_TYPE_REGEXP - if is_set(type) - size = (type.length / 2).to_i - size = 64 if size > 64 - size - end - end - def is_set(type) type.at(1) == "[" && type.ends_with?("]") end