Merge "Remove unused cquery requests."
This commit is contained in:
commit
100d5d6732
1 changed files with 3 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue