aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-06 12:49:29 +0200
committerDavid Gageot <david@gageot.net>2012-07-06 12:50:01 +0200
commitfdd726cbd6058b17646ee99f22647dc096d07e7a (patch)
tree8b6e6158e2f34acb9a1889ecdfa92418a35ba07e /sonar-server
parentf489546852c58d8215af491a971fdde92f9bd4a4 (diff)
downloadsonarqube-fdd726cbd6058b17646ee99f22647dc096d07e7a.tar.gz
sonarqube-fdd726cbd6058b17646ee99f22647dc096d07e7a.zip
SONAR-3432 unused code
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb14
1 files changed, 0 insertions, 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