#include "src/sksl/SkSLContext.h"
#include "src/sksl/SkSLModule.h"
#include "src/sksl/SkSLProgramSettings.h"
#include "src/sksl/analysis/SkSLProgramUsage.h"
#include "src/sksl/ir/SkSLFunctionDeclaration.h"
#include "src/sksl/ir/SkSLFunctionDefinition.h"
#include "src/sksl/ir/SkSLProgram.h"
#include "src/sksl/ir/SkSLProgramElement.h"
#include "src/sksl/transform/SkSLTransform.h"
#include <algorithm>
#include <cstddef>
#include <memory>
#include <vector>
namespace SkSL {
static bool dead_function_predicate(const ProgramElement* element, ProgramUsage* usage) { … }
bool Transform::EliminateDeadFunctions(Program& program) { … }
bool Transform::EliminateDeadFunctions(const Context& context,
Module& module,
ProgramUsage* usage) { … }
}