瀏覽代碼

BUG: #85564 Remove unused variables.

The following is a list of the hash values that have changed, and how to
generate the equivalents after the fix.

HASH(qstring) - use HASH((>data<)qstring)
HASH(varstring) - use HASH((>data<)(string)varstring)
HASH(varunicode) - use HASH((>data<)(unicode)varunicode)

This applies to all the hash functions:
HASH, HASH32, HASH64, CRC
It does not apply to HASHMD5 which never trims spaces (or zeros) from the ends of strings.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 年之前
父節點
當前提交
51934f31e7
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      ecl/hql/hqlutil.cpp

+ 1 - 5
ecl/hql/hqlutil.cpp

@@ -3183,11 +3183,7 @@ IHqlExpression * createTrimExpr(IHqlExpression * value, IHqlExpression * flags)
     else if (isUnicodeType(srcType))
         tgtType = makeUnicodeType(UNKNOWN_LENGTH, srcType->queryLocale());
     else
-    {
-        ICharsetInfo * charset = srcType->queryCharset();
-        ICollationInfo * collation = srcType->queryCollation();
-        tgtType = makeStringType(UNKNOWN_LENGTH, getCharset(asciiAtom),getCollation(asciiAtom));
-    }
+        tgtType = makeStringType(UNKNOWN_LENGTH, getCharset(asciiAtom), getCollation(asciiAtom));
 
     HqlExprArray args;
     args.append(*LINK(expr));