diff options
Diffstat (limited to 'internal/commitquery/load.go')
| -rw-r--r-- | internal/commitquery/load.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/commitquery/load.go b/internal/commitquery/load.go deleted file mode 100644 index b795f7d9..00000000 --- a/internal/commitquery/load.go +++ /dev/null @@ -1,14 +0,0 @@ -package commitquery - -// ensureLoaded completes one node's metadata load if it has not been loaded yet. -func (ctx *Context) ensureLoaded(idx NodeIndex) error { - if ctx.nodes[idx].loaded { - return nil - } - - if ctx.nodes[idx].hasGraphPos { - return ctx.loadByGraphPos(idx) - } - - return ctx.loadByOID(idx) -} |
