Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: runtime/bin/filter.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/filter_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/filter.cc
diff --git a/runtime/bin/filter.cc b/runtime/bin/filter.cc
index 666597975d3fa8decfb179b16f9955a413b0eba4..3604153efa76cbcb65cdc8cb77fad549489eb61e 100644
--- a/runtime/bin/filter.cc
+++ b/runtime/bin/filter.cc
@@ -34,7 +34,6 @@ static Dart_Handle GetFilter(Dart_Handle filter_obj, Filter** filter) {
return Dart_Null();
}
-
static Dart_Handle CopyDictionary(Dart_Handle dictionary_obj,
uint8_t** dictionary) {
ASSERT(dictionary != NULL);
@@ -69,7 +68,6 @@ static Dart_Handle CopyDictionary(Dart_Handle dictionary_obj,
return Dart_Null();
}
-
void FUNCTION_NAME(Filter_CreateZLibInflate)(Dart_NativeArguments args) {
Dart_Handle filter_obj = Dart_GetNativeArgument(args, 0);
Dart_Handle window_bits_obj = Dart_GetNativeArgument(args, 1);
@@ -115,7 +113,6 @@ void FUNCTION_NAME(Filter_CreateZLibInflate)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Filter_CreateZLibDeflate)(Dart_NativeArguments args) {
Dart_Handle filter_obj = Dart_GetNativeArgument(args, 0);
Dart_Handle gzip_obj = Dart_GetNativeArgument(args, 1);
@@ -172,7 +169,6 @@ void FUNCTION_NAME(Filter_CreateZLibDeflate)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Filter_Process)(Dart_NativeArguments args) {
Dart_Handle filter_obj = Dart_GetNativeArgument(args, 0);
Dart_Handle data_obj = Dart_GetNativeArgument(args, 1);
@@ -230,7 +226,6 @@ void FUNCTION_NAME(Filter_Process)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Filter_Processed)(Dart_NativeArguments args) {
Dart_Handle filter_obj = Dart_GetNativeArgument(args, 0);
Dart_Handle flush_obj = Dart_GetNativeArgument(args, 1);
@@ -258,7 +253,6 @@ void FUNCTION_NAME(Filter_Processed)(Dart_NativeArguments args) {
}
}
-
static void DeleteFilter(void* isolate_data,
Dart_WeakPersistentHandle handle,
void* filter_pointer) {
@@ -266,7 +260,6 @@ static void DeleteFilter(void* isolate_data,
delete filter;
}
-
Dart_Handle Filter::SetFilterAndCreateFinalizer(Dart_Handle filter,
Filter* filter_pointer,
intptr_t size) {
@@ -281,7 +274,6 @@ Dart_Handle Filter::SetFilterAndCreateFinalizer(Dart_Handle filter,
return err;
}
-
Dart_Handle Filter::GetFilterNativeField(Dart_Handle filter,
Filter** filter_pointer) {
return Dart_GetNativeInstanceField(
@@ -289,7 +281,6 @@ Dart_Handle Filter::GetFilterNativeField(Dart_Handle filter,
reinterpret_cast<intptr_t*>(filter_pointer));
}
-
ZLibDeflateFilter::~ZLibDeflateFilter() {
delete[] dictionary_;
delete[] current_buffer_;
@@ -298,7 +289,6 @@ ZLibDeflateFilter::~ZLibDeflateFilter() {
}
}
-
bool ZLibDeflateFilter::Init() {
int window_bits = window_bits_;
if (raw_) {
@@ -327,7 +317,6 @@ bool ZLibDeflateFilter::Init() {
return true;
}
-
bool ZLibDeflateFilter::Process(uint8_t* data, intptr_t length) {
if (current_buffer_ != NULL) {
return false;
@@ -367,7 +356,6 @@ intptr_t ZLibDeflateFilter::Processed(uint8_t* buffer,
return error ? -1 : 0;
}
-
ZLibInflateFilter::~ZLibInflateFilter() {
delete[] dictionary_;
delete[] current_buffer_;
@@ -376,7 +364,6 @@ ZLibInflateFilter::~ZLibInflateFilter() {
}
}
-
bool ZLibInflateFilter::Init() {
int window_bits =
raw_ ? -window_bits_ : window_bits_ | kZLibFlagAcceptAnyHeader;
@@ -394,7 +381,6 @@ bool ZLibInflateFilter::Init() {
return true;
}
-
bool ZLibInflateFilter::Process(uint8_t* data, intptr_t length) {
if (current_buffer_ != NULL) {
return false;
@@ -404,7 +390,6 @@ bool ZLibInflateFilter::Process(uint8_t* data, intptr_t length) {
return true;
}
-
intptr_t ZLibInflateFilter::Processed(uint8_t* buffer,
intptr_t length,
bool flush,
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/filter_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698