浏览代码

HPCC-14772 Delete unused code

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 年之前
父节点
当前提交
2835d52602
共有 3 个文件被更改,包括 2 次插入18 次删除
  1. 1 13
      ecl/hqlcpp/hqlcpp.cpp
  2. 0 4
      ecl/hqlcpp/hqlcpp.ipp
  3. 1 1
      ecl/hqlcpp/hqlcppcase.cpp

+ 1 - 13
ecl/hqlcpp/hqlcpp.cpp

@@ -1416,7 +1416,6 @@ HqlCppTranslator::HqlCppTranslator(IErrorReceiver * _errors, const char * _soNam
     #endif
         }
     }
-    hints = 0;
     litno = 0;
     soName.set(_soName);
     HqlDummyLookupContext dummyctx(NULL);
@@ -2772,7 +2771,7 @@ void HqlCppTranslator::buildFilter(BuildCtx & ctx, IHqlExpression * expr)
         }
         break;
     case no_or:
-        if (!(hints & HintSize) && requiresTempAfterFirst(ctx, expr))
+        if (requiresTempAfterFirst(ctx, expr))
         {
             OwnedHqlExpr inverted = convertOrToAnd(expr);
             buildFilter(ctx, inverted);
@@ -12249,17 +12248,6 @@ IHqlExpression * HqlCppTranslator::needFunction(IIdAtom * name)
 }
 
 
-unsigned HqlCppTranslator::processHint(IHqlExpression * expr)
-{
-    unsigned oldHints = hints;
-    IAtom * hint = NULL; // MORE how do I get this?
-    if (hint == sizeAtom)
-        hints = (hints & ~(HintSpeed|HintSize)) | HintSize;
-    else if (hint == speedAtom)
-        hints = (hints & ~(HintSize|HintSpeed)) | HintSpeed;
-    return oldHints;
-}
-
 bool HqlCppTranslator::childrenRequireTemp(BuildCtx & ctx, IHqlExpression * expr, bool includeChildren)
 {
     unsigned numArgs = expr->numChildren();

+ 0 - 4
ecl/hqlcpp/hqlcpp.ipp

@@ -37,7 +37,6 @@
 
 #define MAX_RECORD_SIZE     4096                // default value
 
-enum { HintSpeed = 1, HintSize = 2 };
 enum GraphLocalisation {
     GraphNeverAccess,  // This variant of an activity never accesses the parent
     GraphNoAccess,  // This activity would normally access the parent, but doesn't here
@@ -944,7 +943,6 @@ public:
     void finalizeResources();
     void generateStatistics(const char * targetDir, const char * variant);
 
-            unsigned getHints()                             { return hints; }
     inline bool queryEvaluateCoLocalRowInvariantInExtract() const { return options.evaluateCoLocalRowInvariantInExtract; }
     inline byte notifyOptimizedProjectsLevel()              { return options.notifyOptimizedProjects; }
     inline bool generateAsserts() const                     { return options.checkAsserts; }
@@ -1550,7 +1548,6 @@ public:
     IHqlExpression * getConstWuid(IHqlExpression * expr);
     IHqlExpression * getFirstCharacter(IHqlExpression * source);
     bool hasAddress(BuildCtx & ctx, IHqlExpression * expr);
-    unsigned processHint(IHqlExpression * expr);
 
     IHqlExpression * convertOrToAnd(IHqlExpression * expr);
     bool childrenRequireTemp(BuildCtx & ctx, IHqlExpression * expr, bool includeChildren);
@@ -1930,7 +1927,6 @@ public:
 protected:
     HqlCppInstance *    code;
     IHqlScope *         internalScope;
-    unsigned            hints;
     RecordOffsetMap     recordMap;      // no_record -> offset information
     ExprExprMap         physicalIndexCache;
     unsigned            litno;

+ 1 - 1
ecl/hqlcpp/hqlcppcase.cpp

@@ -179,7 +179,7 @@ bool HqlCppCaseInfo::buildAssign(BuildCtx & ctx, const CHqlBoundTarget & target)
 
         if (complexCompare)
         {
-            if ((pairs.ordinality() > INLINE_COMPARE_THRESHOLD) || (translator.getHints() & HintSize))
+            if (pairs.ordinality() > INLINE_COMPARE_THRESHOLD)
             {
                 if (okToAlwaysEvaluateDefault() || hasLibraryChop())
                     buildLoopChopMap(subctx, target, test);