diff options
author | 2023-10-16 22:49:30 -0400 | |
---|---|---|
committer | 2023-10-16 22:51:24 -0400 | |
commit | 04525ba8869e0515cd1351eb3bfedb0128c8136f (patch) | |
tree | d56acc6bd1cd38f71962d0d632c62b398c5cfeb0 | |
parent | aea8ba353417eff00fb76d5b95df79e7eb0e6aee (diff) |
Remove unused aquery structs
See aosp/I5962b27fe31f7103d2af6cef159f11747cff3ed9
where proto classes were used directly making
these structs unused.
Test: go test soong tests
Test: m nothing
Change-Id: Ib452aaa4ce069d882888fc2556ebf3bf7a94c2ca
-rw-r--r-- | bazel/aquery.go | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/bazel/aquery.go b/bazel/aquery.go index 641f16bf2..27ccb20c8 100644 --- a/bazel/aquery.go +++ b/bazel/aquery.go @@ -37,19 +37,6 @@ type artifactId int type depsetId int type pathFragmentId int -// artifact contains relevant portions of Bazel's aquery proto, Artifact. -// Represents a single artifact, whether it's a source file or a derived output file. -type artifact struct { - Id artifactId - PathFragmentId pathFragmentId -} - -type pathFragment struct { - Id pathFragmentId - Label string - ParentId pathFragmentId -} - // KeyValuePair represents Bazel's aquery proto, KeyValuePair. type KeyValuePair struct { Key string @@ -70,37 +57,6 @@ type AqueryDepset struct { TransitiveDepSetHashes []string } -// depSetOfFiles contains relevant portions of Bazel's aquery proto, DepSetOfFiles. -// Represents a data structure containing one or more files. Depsets in Bazel are an efficient -// data structure for storing large numbers of file paths. -type depSetOfFiles struct { - Id depsetId - DirectArtifactIds []artifactId - TransitiveDepSetIds []depsetId -} - -// action contains relevant portions of Bazel's aquery proto, Action. -// Represents a single command line invocation in the Bazel build graph. -type action struct { - Arguments []string - EnvironmentVariables []KeyValuePair - InputDepSetIds []depsetId - Mnemonic string - OutputIds []artifactId - TemplateContent string - Substitutions []KeyValuePair - FileContents string -} - -// actionGraphContainer contains relevant portions of Bazel's aquery proto, ActionGraphContainer. -// An aquery response from Bazel contains a single ActionGraphContainer proto. -type actionGraphContainer struct { - Artifacts []artifact - Actions []action - DepSetOfFiles []depSetOfFiles - PathFragments []pathFragment -} - // BuildStatement contains information to register a build statement corresponding (one to one) // with a Bazel action from Bazel's action graph. type BuildStatement struct { |