Skip to content

Commit

Permalink
no backpointer yet
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Nov 9, 2023
1 parent b75f88d commit 58a40b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions pkg/cwhub/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ type ItemVersion struct {

// Item represents an object managed in the hub. It can be a parser, scenario, collection..
type Item struct {
// backpointer to access other items (esp. sub items, parent collections)
Hub *Hub `json:"-" yaml:"-"`

// descriptive info
Type string `json:"type,omitempty" yaml:"type,omitempty"` // can be any of the ItemTypes
Stage string `json:"stage,omitempty" yaml:"stage,omitempty"` // Stage for parser|postoverflow: s00-raw/s01-...
Expand Down
1 change: 0 additions & 1 deletion pkg/cwhub/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ func (h *Hub) itemVisit(path string, f os.DirEntry, err error) error {
item.LocalHash = sha
}

item.Hub = h
h.Items[info.ftype][name] = item

return nil
Expand Down

0 comments on commit 58a40b3

Please sign in to comment.