Skip to content

Commit

Permalink
Remove site from graph CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
picatz committed Jan 6, 2024
1 parent 16fe589 commit fa43fa6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions callgraphutil/cosmograph.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func WriteCosmograph(graph, metadata io.Writer, g *callgraph.Graph) error {
defer metadataWriter.Flush()

// Write header.
if err := graphWriter.Write([]string{"source", "target", "site"}); err != nil {
if err := graphWriter.Write([]string{"source", "target"}); err != nil {
return fmt.Errorf("failed to write header: %w", err)
}

Expand Down Expand Up @@ -58,7 +58,6 @@ func WriteCosmograph(graph, metadata io.Writer, g *callgraph.Graph) error {
if err := graphWriter.Write([]string{
fmt.Sprintf("%d", n.ID),
fmt.Sprintf("%d", e.Callee.ID),
fmt.Sprintf("%q", e.Site),
}); err != nil {
return fmt.Errorf("failed to write edge: %w", err)
}
Expand Down

0 comments on commit fa43fa6

Please sign in to comment.