Schemas: Delete unused code from the previous refactors (#84254)

* Delete unused code from the previous refactors

* Sort imports
This commit is contained in:
Selene
2024-03-13 12:30:05 +01:00
committed by GitHub
parent 2a1a5145d0
commit 75ea33e0cd
13 changed files with 50 additions and 368 deletions
-13
View File
@@ -15,19 +15,6 @@ type OneToMany codejen.OneToMany[kindsys.Kind]
type ManyToOne codejen.ManyToOne[kindsys.Kind]
type ManyToMany codejen.ManyToMany[kindsys.Kind]
// ForLatestSchema returns a [SchemaForGen] for the latest schema in the
// provided [kindsys.Kind]'s lineage.
//
// TODO this will be replaced by thema-native constructs
func ForLatestSchema(k kindsys.Kind) SchemaForGen {
comm := k.Props().Common()
return SchemaForGen{
Name: comm.Name,
Schema: k.Lineage().Latest(),
IsGroup: comm.LineageIsGroup,
}
}
// SlashHeaderMapper produces a FileMapper that injects a comment header onto
// a [codejen.File] indicating the main generator that produced it (via the provided
// maingen, which should be a path) and the jenny or jennies that constructed the