diff --git a/bazel/cquery/request_type.go b/bazel/cquery/request_type.go index 864db3d2d..bd1ece177 100644 --- a/bazel/cquery/request_type.go +++ b/bazel/cquery/request_type.go @@ -6,7 +6,6 @@ import ( var ( GetOutputFiles RequestType = &getOutputFilesRequestType{} - GetCcObjectFiles RequestType = &getCcObjectFilesRequestType{} GetOutputFilesAndCcObjectFiles RequestType = &getOutputFilesAndCcObjectFilesType{} ) @@ -16,7 +15,9 @@ type GetOutputFilesAndCcObjectFiles_Result struct { } var RequestTypes []RequestType = []RequestType{ - GetOutputFiles, GetCcObjectFiles, GetOutputFilesAndCcObjectFiles} + GetOutputFiles, + GetOutputFilesAndCcObjectFiles, +} type RequestType interface { // Name returns a string name for this request type. Such request type names must be unique, @@ -55,28 +56,6 @@ func (g getOutputFilesRequestType) ParseResult(rawString string) interface{} { return strings.Split(rawString, ", ") } -type getCcObjectFilesRequestType struct{} - -func (g getCcObjectFilesRequestType) Name() string { - return "getCcObjectFiles" -} - -func (g getCcObjectFilesRequestType) StarlarkFunctionBody() string { - return ` -result = [] -linker_inputs = providers(target)["CcInfo"].linking_context.linker_inputs.to_list() - -for linker_input in linker_inputs: - for library in linker_input.libraries: - for object in library.objects: - result += [object.path] -return ', '.join(result)` -} - -func (g getCcObjectFilesRequestType) ParseResult(rawString string) interface{} { - return strings.Split(rawString, ", ") -} - type getOutputFilesAndCcObjectFilesType struct{} func (g getOutputFilesAndCcObjectFilesType) Name() string {