From fdd726cbd6058b17646ee99f22647dc096d07e7a Mon Sep 17 00:00:00 2001 From: David Gageot Date: Fri, 6 Jul 2012 12:49:29 +0200 Subject: [PATCH] SONAR-3432 unused code --- .../app/helpers/rules_configuration_helper.rb | 14 -------------- 1 file changed, 14 deletions(-) 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 -- 2.39.5