Skip to content

Commit 7db211b

Browse files
committed
[clang-format][NFC] Remove the unused separateDefinitionBlocks()
Also, fixed a formatting error introduced in 84e3fdf.
1 parent fc86d03 commit 7db211b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

clang/lib/Format/Format.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ namespace llvm {
6161
namespace yaml {
6262
template <>
6363
struct ScalarEnumerationTraits<FormatStyle::BreakBeforeNoexceptSpecifierStyle> {
64-
static void enumeration(IO &IO,
65-
FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) {
64+
static void
65+
enumeration(IO &IO, FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) {
6666
IO.enumCase(Value, "Never", FormatStyle::BBNSS_Never);
6767
IO.enumCase(Value, "OnlyWithParen", FormatStyle::BBNSS_OnlyWithParen);
6868
IO.enumCase(Value, "Always", FormatStyle::BBNSS_Always);
@@ -3779,16 +3779,6 @@ tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style,
37793779
return NamespaceEndCommentsFixer(*Env, Style).process().first;
37803780
}
37813781

3782-
tooling::Replacements separateDefinitionBlocks(const FormatStyle &Style,
3783-
StringRef Code,
3784-
ArrayRef<tooling::Range> Ranges,
3785-
StringRef FileName) {
3786-
auto Env = Environment::make(Code, FileName, Ranges);
3787-
if (!Env)
3788-
return {};
3789-
return DefinitionBlockSeparator(*Env, Style).process().first;
3790-
}
3791-
37923782
tooling::Replacements sortUsingDeclarations(const FormatStyle &Style,
37933783
StringRef Code,
37943784
ArrayRef<tooling::Range> Ranges,

0 commit comments

Comments
 (0)