Schemas: Delete unused code from the previous refactors (#84254)
* Delete unused code from the previous refactors * Sort imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user