Skip to content

Commit 7b679fa

Browse files
committed
[Frontend] NFC: Remove unused function
1 parent 542721b commit 7b679fa

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

include/swift/Frontend/FrontendOptions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@ class FrontendOptions {
287287
/// -dump-scope-maps.
288288
SmallVector<std::pair<unsigned, unsigned>, 2> DumpScopeMapLocations;
289289

290-
/// Indicates whether the action will immediately run code.
291-
static bool isActionImmediate(ActionType);
292-
293290
/// \return true if action only parses without doing other compilation steps.
294291
static bool shouldActionOnlyParse(ActionType);
295292

lib/Frontend/FrontendOptions.cpp

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -67,45 +67,6 @@ bool FrontendOptions::needsProperModuleName(ActionType action) {
6767
llvm_unreachable("Unknown ActionType");
6868
}
6969

70-
bool FrontendOptions::isActionImmediate(ActionType action) {
71-
switch (action) {
72-
case ActionType::NoneAction:
73-
case ActionType::Parse:
74-
case ActionType::ResolveImports:
75-
case ActionType::Typecheck:
76-
case ActionType::DumpParse:
77-
case ActionType::DumpAST:
78-
case ActionType::EmitSyntax:
79-
case ActionType::DumpInterfaceHash:
80-
case ActionType::PrintAST:
81-
case ActionType::DumpScopeMaps:
82-
case ActionType::DumpTypeRefinementContexts:
83-
case ActionType::EmitPCH:
84-
case ActionType::EmitSILGen:
85-
case ActionType::EmitSIL:
86-
case ActionType::EmitSIBGen:
87-
case ActionType::EmitSIB:
88-
case ActionType::EmitModuleOnly:
89-
case ActionType::MergeModules:
90-
case ActionType::CompileModuleFromInterface:
91-
return false;
92-
case ActionType::Immediate:
93-
case ActionType::REPL:
94-
return true;
95-
case ActionType::EmitAssembly:
96-
case ActionType::EmitIR:
97-
case ActionType::EmitBC:
98-
case ActionType::EmitObject:
99-
case ActionType::EmitImportedModules:
100-
case ActionType::DumpTypeInfo:
101-
case ActionType::EmitPCM:
102-
case ActionType::DumpPCM:
103-
case ActionType::ScanDependencies:
104-
return false;
105-
}
106-
llvm_unreachable("Unknown ActionType");
107-
}
108-
10970
bool FrontendOptions::shouldActionOnlyParse(ActionType action) {
11071
switch (action) {
11172
case FrontendOptions::ActionType::Parse:

0 commit comments

Comments
 (0)