Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09f9231e authored by Liz Kammer's avatar Liz Kammer
Browse files

Remove unused cquery requests.

Test: go test soong tests
Change-Id: Ie7a72bc73ccf4d9b8aa2a0b20c1674d3a5b499de
parent 51a0d85e
Loading
Loading
Loading
Loading
+3 −24
Original line number Diff line number Diff line
@@ -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 {