소스 검색

refactor: remove dead code

Sam Jaffe 1 년 전
부모
커밋
1c63072156
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      include/jvalidate/schema.h

+ 0 - 9
include/jvalidate/schema.h

@@ -273,16 +273,7 @@ private:
     // Do this here first in order to protect from infinite loops
     alias(context.dynamic_where, &it->second);
     it->second.construct(context);
-    /* if (not it->second.is_pure_reference()) { */
     return &it->second;
-    /* } */
-
-    // Special Case - if the only is the reference constraint, then we don't need
-    // to store it uniquely. Draft2019_09 supports directly extending a $ref schema
-    // in the same schema, instead of requiring an allOf clause.
-    /* schema::Node const * node = *it->second.reference_schema(); */
-    /* cache_.erase(it); */
-    /* return alias_cache_[context.where] = node; */
   }
 };
 }