diff --git a/process/Util_lib/process.js b/process/Util_lib/process.js index 11f3366f5d24aaa5042d8ab2a5e1136567e0c4ef..b27d5d9c3c802b1d8449e4b6e2f3e15f6520cdd9 100644 --- a/process/Util_lib/process.js +++ b/process/Util_lib/process.js @@ -406,48 +406,3 @@ NumberSequencingUtils.getMaxUniqueNumber = function(pColumn, pTable, pCondition) var maxNum = db.cell("select max(" + pColumn + ") from " + pTable + condition); return maxNum == "" ? "0" : maxNum; } - -/** - * Class containing miscellaneous utiltiy function extending JDito - * @class - * @deprecated - * @todo: remove - */ -function JDitoUtils() -{ - /** - * Returns a list of aliasNames with a given type - * ignores errors when an alias is not confgiured (empty) - * - * @param {project.DATASOURCE_} pAliasType opt the type of the aliases to load - * - * @return {String[]} Array of aliasNames - */ - this.getAliasListByType = function(pAliasType) - { - pAliasType = pAliasType || project.DATASOURCE_DB; - - var allDbAliases = project.getDataModels(project.DATAMODEL_KIND_ALIAS); - var dbAliases = []; - - for (var i = 0, j = allDbAliases.length; i < j; i++) - { - var aliasName = allDbAliases[i][0]; - var alias = null; - try - { - alias = project.getAliasModel(aliasName); - } - catch(ex) - { - logging.log(translate.withArguments("Der Alias \"%0\" konnte nicht geladen werden. Eventuell wurde er nicht konfiguriert", [aliasName])); - logging.log(ex); - } - - if (alias != null && alias[project.ALIAS_DATASOURCETYPE] == pAliasType) - dbAliases.push(aliasName); - } - - return dbAliases; - } -}