Skip to content

Commit

Permalink
Drop some dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed May 19, 2016
1 parent a9ab079 commit f319712
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions component/all/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ func (payloads) registerState() {
return
}

// TODO(ericsnow) Use a more general registration mechanism.
//state.RegisterMultiEnvCollections(persistence.Collections...)

newUnitPayloads := func(persist state.Persistence, unit, machine string) (state.UnitPayloads, error) {
return payloadstate.NewUnitPayloads(persist, unit, machine), nil
}
Expand Down
7 changes: 0 additions & 7 deletions payload/persistence/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ const (
payloadsC = "payloads"
)

// Collections is the list of names of the mongo collections where state
// is stored for payloads.
// TODO(ericsnow) Not needed anymore...modify for a new registration scheme?
var Collections = []string{
payloadsC,
}

// TODO(ericsnow) Move the methods under their own type (payloadcollection?).

func (pp Persistence) extractPayload(id string, payloadDocs map[string]payloadDoc) (*payload.Payload, bool) {
Expand Down

0 comments on commit f319712

Please sign in to comment.