| 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,
|
|
|