Browse Source

refactor: minor cleanups

Sam Jaffe 3 months ago
parent
commit
853a445a3f

+ 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;