(ctx context.Context, revID string)
| 807 | } |
| 808 | |
| 809 | func (doc *Document) removeRevisionBody(ctx context.Context, revID string) { |
| 810 | removedBodyKey := doc.History.removeRevisionBody(ctx, revID) |
| 811 | if removedBodyKey != "" { |
| 812 | if doc.removedRevisionBodyKeys == nil { |
| 813 | doc.removedRevisionBodyKeys = make(map[string]string) |
| 814 | } |
| 815 | doc.removedRevisionBodyKeys[revID] = removedBodyKey |
| 816 | } |
| 817 | } |
| 818 | |
| 819 | // makeBodyActive moves a previously non-winning revision body from the rev tree to the document body |
| 820 | func (doc *Document) promoteNonWinningRevisionBody(ctx context.Context, revid string, loader RevLoaderFunc) { |
no outgoing calls
no test coverage detected