소스 검색

refactor: minor cleanups

Sam Jaffe 3 달 전
부모
커밋
853a445a3f
3개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 1
      include/jvalidate/constraint.h
  2. 0 3
      include/jvalidate/detail/reference_manager.h
  3. 0 1
      include/jvalidate/validation_visitor.h

+ 0 - 1
include/jvalidate/constraint.h

@@ -414,7 +414,6 @@ public:
    * There is no rule preventing an "if" keyword from existing without either
    * of the "then" or "else" keywords, but doing so only serves the purpose of
    * annotation gathering.
-   * TODO: Only gather annotations from then/else if the if clause is present
    *
    * @param context The operating context of the schema parsing.
    *

+ 0 - 3
include/jvalidate/detail/reference_manager.h

@@ -1,9 +1,6 @@
 #pragma once
 
-#include <functional>
 #include <map>
-#include <set>
-#include <unordered_map>
 #include <unordered_set>
 
 #include <jvalidate/compat/enumerate.h>

+ 0 - 1
include/jvalidate/validation_visitor.h

@@ -272,7 +272,6 @@ public:
     // https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-01#name-defined-formats
     NOOP_UNLESS_TYPE(String);
 
-    // TODO(samjaffe): annotate(cons.format)
     annotate(cons.format);
     if (not cfg_.validate_format && not cons.is_assertion) {
       return true;