Skip to content

Commit

Permalink
chore(ios): remove all clang-format instruction (#3452)
Browse files Browse the repository at this point in the history
Co-authored-by: OpenHippy <[email protected]>
  • Loading branch information
wwwcg and open-hippy authored Sep 6, 2023
1 parent 890400a commit eec0d79
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 99 deletions.
1 change: 0 additions & 1 deletion driver/js/scripts/build-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const CodePieces = {
#include "driver/vm/native_source_code.h"
#include "footstone/macros.h"
// clang-format off
namespace {`;
},
Expand Down
1 change: 0 additions & 1 deletion driver/js/src/vm/jsc/native_source_code_ios.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "driver/vm/native_source_code.h"
#include "footstone/macros.h"

// clang-format off

namespace {
const uint8_t k_bootstrap[] = { 34,117,115,101,32,115,116,114,105,99,116,34,59,10,10,102,117,110,99,116,105,111,110,32,95,99,108,97,115,115,67,97,108,108,67,104,101,99,107,40,105,110,115,116,97,110,99,101,44,32,67,111,110,115,116,114,117,99,116,111,114,41,32,123,32,105,102,32,40,33,40,105,110,115,116,97,110,99,101,32,105,110,115,116,97,110,99,101,111,102,32,67,111,110,115,116,114,117,99,116,111,114,41,41,32,123,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,34,67,97,110,110,111,116,32,99,97,108,108,32,97,32,99,108,97,115,115,32,97,115,32,97,32,102,117,110,99,116,105,111,110,34,41,59,32,125,32,125,10,102,117,110,99,116,105,111,110,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,116,97,114,103,101,116,44,32,112,114,111,112,115,41,32,123,32,102,111,114,32,40,118,97,114,32,105,32,61,32,48,59,32,105,32,60,32,112,114,111,112,115,46,108,101,110,103,116,104,59,32,105,43,43,41,32,123,32,118,97,114,32,100,101,115,99,114,105,112,116,111,114,32,61,32,112,114,111,112,115,91,105,93,59,32,100,101,115,99,114,105,112,116,111,114,46,101,110,117,109,101,114,97,98,108,101,32,61,32,100,101,115,99,114,105,112,116,111,114,46,101,110,117,109,101,114,97,98,108,101,32,124,124,32,102,97,108,115,101,59,32,100,101,115,99,114,105,112,116,111,114,46,99,111,110,102,105,103,117,114,97,98,108,101,32,61,32,116,114,117,101,59,32,105,102,32,40,34,118,97,108,117,101,34,32,105,110,32,100,101,115,99,114,105,112,116,111,114,41,32,100,101,115,99,114,105,112,116,111,114,46,119,114,105,116,97,98,108,101,32,61,32,116,114,117,101,59,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,40,116,97,114,103,101,116,44,32,95,116,111,80,114,111,112,101,114,116,121,75,101,121,40,100,101,115,99,114,105,112,116,111,114,46,107,101,121,41,44,32,100,101,115,99,114,105,112,116,111,114,41,59,32,125,32,125,10,102,117,110,99,116,105,111,110,32,95,99,114,101,97,116,101,67,108,97,115,115,40,67,111,110,115,116,114,117,99,116,111,114,44,32,112,114,111,116,111,80,114,111,112,115,44,32,115,116,97,116,105,99,80,114,111,112,115,41,32,123,32,105,102,32,40,112,114,111,116,111,80,114,111,112,115,41,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,67,111,110,115,116,114,117,99,116,111,114,46,112,114,111,116,111,116,121,112,101,44,32,112,114,111,116,111,80,114,111,112,115,41,59,32,105,102,32,40,115,116,97,116,105,99,80,114,111,112,115,41,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,67,111,110,115,116,114,117,99,116,111,114,44,32,115,116,97,116,105,99,80,114,111,112,115,41,59,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,40,67,111,110,115,116,114,117,99,116,111,114,44,32,34,112,114,111,116,111,116,121,112,101,34,44,32,123,32,119,114,105,116,97,98,108,101,58,32,102,97,108,115,101,32,125,41,59,32,114,101,116,117,114,110,32,67,111,110,115,116,114,117,99,116,111,114,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,111,80,114,111,112,101,114,116,121,75,101,121,40,97,114,103,41,32,123,32,118,97,114,32,107,101,121,32,61,32,95,116,111,80,114,105,109,105,116,105,118,101,40,97,114,103,44,32,34,115,116,114,105,110,103,34,41,59,32,114,101,116,117,114,110,32,95,116,121,112,101,111,102,40,107,101,121,41,32,61,61,61,32,34,115,121,109,98,111,108,34,32,63,32,107,101,121,32,58,32,83,116,114,105,110,103,40,107,101,121,41,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,111,80,114,105,109,105,116,105,118,101,40,105,110,112,117,116,44,32,104,105,110,116,41,32,123,32,105,102,32,40,95,116,121,112,101,111,102,40,105,110,112,117,116,41,32,33,61,61,32,34,111,98,106,101,99,116,34,32,124,124,32,105,110,112,117,116,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,105,110,112,117,116,59,32,118,97,114,32,112,114,105,109,32,61,32,105,110,112,117,116,91,83,121,109,98,111,108,46,116,111,80,114,105,109,105,116,105,118,101,93,59,32,105,102,32,40,112,114,105,109,32,33,61,61,32,117,110,100,101,102,105,110,101,100,41,32,123,32,118,97,114,32,114,101,115,32,61,32,112,114,105,109,46,99,97,108,108,40,105,110,112,117,116,44,32,104,105,110,116,32,124,124,32,34,100,101,102,97,117,108,116,34,41,59,32,105,102,32,40,95,116,121,112,101,111,102,40,114,101,115,41,32,33,61,61,32,34,111,98,106,101,99,116,34,41,32,114,101,116,117,114,110,32,114,101,115,59,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,34,64,64,116,111,80,114,105,109,105,116,105,118,101,32,109,117,115,116,32,114,101,116,117,114,110,32,97,32,112,114,105,109,105,116,105,118,101,32,118,97,108,117,101,46,34,41,59,32,125,32,114,101,116,117,114,110,32,40,104,105,110,116,32,61,61,61,32,34,115,116,114,105,110,103,34,32,63,32,83,116,114,105,110,103,32,58,32,78,117,109,98,101,114,41,40,105,110,112,117,116,41,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,121,112,101,111,102,40,111,98,106,41,32,123,32,34,64,98,97,98,101,108,47,104,101,108,112,101,114,115,32,45,32,116,121,112,101,111,102,34,59,32,114,101,116,117,114,110,32,95,116,121,112,101,111,102,32,61,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,32,38,38,32,34,115,121,109,98,111,108,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,46,105,116,101,114,97,116,111,114,32,63,32,102,117,110,99,116,105,111,110,32,40,111,98,106,41,32,123,32,114,101,116,117,114,110,32,116,121,112,101,111,102,32,111,98,106,59,32,125,32,58,32,102,117,110,99,116,105,111,110,32,40,111,98,106,41,32,123,32,114,101,116,117,114,110,32,111,98,106,32,38,38,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,32,38,38,32,111,98,106,46,99,111,110,115,116,114,117,99,116,111,114,32,61,61,61,32,83,121,109,98,111,108,32,38,38,32,111,98,106,32,33,61,61,32,83,121,109,98,111,108,46,112,114,111,116,111,116,121,112,101,32,63,32,34,115,121,109,98,111,108,34,32,58,32,116,121,112,101,111,102,32,111,98,106,59,32,125,44,32,95,116,121,112,101,111,102,40,111,98,106,41,59,32,125,10,40,102,117,110,99,116,105,111,110,32,40,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,32,123,10,32,32,103,108,111,98,97,108,46,72,105,112,112,121,32,61,32,103,108,111,98,97,108,46,72,105,112,112,121,32,124,124,32,123,125,59,10,32,32,118,97,114,32,98,105,110,100,105,110,103,79,98,106,32,61,32,123,125,59,10,32,32,118,97,114,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,32,61,32,102,117,110,99,116,105,111,110,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,32,123,10,32,32,32,32,105,102,32,40,95,116,121,112,101,111,102,40,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,41,32,33,61,61,32,39,111,98,106,101,99,116,39,41,32,123,10,32,32,32,32,32,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,61,32,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,59,10,32,32,125,59,10,32,32,118,97,114,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,32,61,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,39,67,111,110,116,101,120,116,105,102,121,77,111,100,117,108,101,39,41,59,10,32,32,118,97,114,32,78,97,116,105,118,101,77,111,100,117,108,101,32,61,32,102,117,110,99,116,105,111,110,32,40,41,32,123,10,32,32,32,32,102,117,110,99,116,105,111,110,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,32,123,10,32,32,32,32,32,32,95,99,108,97,115,115,67,97,108,108,67,104,101,99,107,40,116,104,105,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,41,59,10,32,32,32,32,32,32,116,104,105,115,46,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,110,97,109,101,59,10,32,32,32,32,32,32,116,104,105,115,46,101,120,112,111,114,116,115,32,61,32,123,125,59,10,32,32,32,32,125,10,32,32,32,32,95,99,114,101,97,116,101,67,108,97,115,115,40,78,97,116,105,118,101,77,111,100,117,108,101,44,32,91,123,10,32,32,32,32,32,32,107,101,121,58,32,34,99,111,109,112,105,108,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,99,111,109,112,105,108,101,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,110,32,61,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,46,82,117,110,73,110,84,104,105,115,67,111,110,116,101,120,116,40,116,104,105,115,46,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,32,32,102,110,40,116,104,105,115,46,101,120,112,111,114,116,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,44,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,44,32,123,10,32,32,32,32,32,32,107,101,121,58,32,34,99,97,99,104,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,99,97,99,104,101,40,41,32,123,10,32,32,32,32,32,32,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,116,104,105,115,46,102,105,108,101,110,97,109,101,93,32,61,32,116,104,105,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,93,44,32,91,123,10,32,32,32,32,32,32,107,101,121,58,32,34,114,101,113,117,105,114,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,114,101,113,117,105,114,101,40,102,105,108,101,80,97,116,104,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,105,108,101,80,97,116,104,65,114,114,32,61,32,102,105,108,101,80,97,116,104,46,115,112,108,105,116,40,39,47,39,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,80,97,116,104,65,114,114,91,102,105,108,101,80,97,116,104,65,114,114,46,108,101,110,103,116,104,32,45,32,49,93,59,10,32,32,32,32,32,32,32,32,118,97,114,32,99,97,99,104,101,100,32,61,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,102,105,108,101,110,97,109,101,93,59,10,32,32,32,32,32,32,32,32,105,102,32,40,99,97,99,104,101,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,97,99,104,101,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,118,97,114,32,110,97,116,105,118,101,77,111,100,117,108,101,32,61,32,110,101,119,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,40,41,59,10,32,32,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,111,109,112,105,108,101,40,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,97,116,105,118,101,77,111,100,117,108,101,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,93,41,59,10,32,32,32,32,114,101,116,117,114,110,32,78,97,116,105,118,101,77,111,100,117,108,101,59,10,32,32,125,40,41,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,32,61,32,123,125,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,40,39,104,105,112,112,121,46,106,115,39,41,59,10,125,41,59,0 }; // NOLINT
Expand Down
1 change: 0 additions & 1 deletion driver/js/src/vm/v8/native_source_code_android.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "driver/vm/native_source_code.h"
#include "footstone/macros.h"

// clang-format off

namespace {
const uint8_t k_bootstrap[] = { 40,102,117,110,99,116,105,111,110,32,40,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,32,123,10,32,32,103,108,111,98,97,108,46,72,105,112,112,121,32,61,32,103,108,111,98,97,108,46,72,105,112,112,121,32,124,124,32,123,125,59,10,32,32,99,111,110,115,116,32,98,105,110,100,105,110,103,79,98,106,32,61,32,123,125,59,10,32,32,99,111,110,115,116,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,32,61,32,102,117,110,99,116,105,111,110,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,32,123,10,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,33,61,61,32,39,111,98,106,101,99,116,39,41,32,123,10,32,32,32,32,32,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,61,32,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,59,10,32,32,125,59,10,32,32,99,111,110,115,116,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,32,61,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,39,67,111,110,116,101,120,116,105,102,121,77,111,100,117,108,101,39,41,59,10,32,32,99,108,97,115,115,32,78,97,116,105,118,101,77,111,100,117,108,101,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,102,105,108,101,110,97,109,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,110,97,109,101,59,10,32,32,32,32,32,32,116,104,105,115,46,101,120,112,111,114,116,115,32,61,32,123,125,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,114,101,113,117,105,114,101,40,102,105,108,101,80,97,116,104,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,80,97,116,104,65,114,114,32,61,32,102,105,108,101,80,97,116,104,46,115,112,108,105,116,40,39,47,39,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,80,97,116,104,65,114,114,91,102,105,108,101,80,97,116,104,65,114,114,46,108,101,110,103,116,104,32,45,32,49,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,97,99,104,101,100,32,61,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,102,105,108,101,110,97,109,101,93,59,10,32,32,32,32,32,32,105,102,32,40,99,97,99,104,101,100,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,97,99,104,101,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,116,105,118,101,77,111,100,117,108,101,32,61,32,110,101,119,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,40,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,111,109,112,105,108,101,40,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,110,97,116,105,118,101,77,111,100,117,108,101,46,101,120,112,111,114,116,115,59,10,32,32,32,32,125,10,32,32,32,32,99,111,109,112,105,108,101,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,110,32,61,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,46,82,117,110,73,110,84,104,105,115,67,111,110,116,101,120,116,40,116,104,105,115,46,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,102,110,40,116,104,105,115,46,101,120,112,111,114,116,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,44,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,59,10,32,32,32,32,125,10,32,32,32,32,99,97,99,104,101,40,41,32,123,10,32,32,32,32,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,116,104,105,115,46,102,105,108,101,110,97,109,101,93,32,61,32,116,104,105,115,59,10,32,32,32,32,125,10,32,32,125,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,32,61,32,123,125,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,40,39,104,105,112,112,121,46,106,115,39,41,59,10,125,41,59,0 }; // NOLINT
Expand Down
2 changes: 0 additions & 2 deletions framework/ios/base/executors/HippyJSExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ - (NSString *)enginekey {
return _enginekey ?: [NSString stringWithFormat:@"%p", self];
}

// clang-format off
- (void)setContextName:(NSString *)contextName {
#ifdef JS_JSC
if (!contextName) {
Expand Down Expand Up @@ -410,7 +409,6 @@ - (void)setInspecable:(BOOL)inspectable {
#endif //defined(__IPHONE_16_4) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_4
#endif //JS_JSC
}
// clang-format on

- (void)dealloc {
HPLogInfo(@"[Hippy_OC_Log][Life_Circle],HippyJSCExecutor dealloc %p", self);
Expand Down
6 changes: 0 additions & 6 deletions framework/ios/debug/websocket/HippyWebSocketManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ - (void)invalidate {
}
}

// clang-format off
HIPPY_EXPORT_METHOD(connect:(NSDictionary *)params resolver:(HippyPromiseResolveBlock)resolve rejecter:(HippyPromiseRejectBlock)reject) {
NSDictionary *headers = params[@"headers"];
NSString *url = params[@"url"];
Expand All @@ -75,9 +74,7 @@ - (void)invalidate {
resolve(@{@"code": @(0), @"id": socketId});
[socket open];
}
// clang-format on

// clang-format off
HIPPY_EXPORT_METHOD(close:(NSDictionary *)params) {
NSNumber *socketId = params[@"id"];
NSNumber *code = params[@"code"];
Expand All @@ -92,9 +89,7 @@ - (void)invalidate {
}
}
}
// clang-format on

// clang-format off
HIPPY_EXPORT_METHOD(send:(NSDictionary *)params) {
NSNumber *socketId = params[@"id"];
NSString *data = params[@"data"];
Expand All @@ -103,7 +98,6 @@ - (void)invalidate {
[socket send:data];
}
}
// clang-format on

- (void)webSocket:(HippySRWebSocket *)webSocket didReceiveMessage:(id)message {
dispatch_async(_queue, ^{
Expand Down
4 changes: 0 additions & 4 deletions framework/ios/module/dev/HippyDevMenu.mm
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,10 @@ - (void)addItem:(__unused HippyDevMenuItem *)item {
return items;
}

// clang-format off
HIPPY_EXPORT_METHOD(reload) {
[_bridge requestReload];
}
// clang-format on

// clang-format off
HIPPY_EXPORT_METHOD(show) {
if (_actionSheet || !_bridge || HPRunningInAppExtension()) {
return;
Expand Down Expand Up @@ -269,7 +266,6 @@ - (void)addItem:(__unused HippyDevMenuItem *)item {

[HPPresentedViewController() presentViewController:_actionSheet animated:YES completion:^(void){}];
}
// clang-format on

@end

Expand Down
2 changes: 0 additions & 2 deletions framework/ios/module/dev/HippyRedBox.mm
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,11 @@ - (void)showErrorMessage:(NSString *)message withStack:(NSArray *)stack isUpdate
});
}

// clang-format off
HIPPY_EXPORT_METHOD(dismiss) {
dispatch_async(dispatch_get_main_queue(), ^{
[self->_window dismiss];
});
}
// clang-format on

- (void)invalidate {
[self dismiss];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ - (instancetype)init
return self;
}

// clang-format off
HIPPY_EXPORT_METHOD(addListener:(NSString *)eventName) {
HPAssertParam(eventName);
NSNumber *value = _config[eventName];
Expand All @@ -57,9 +56,7 @@ - (instancetype)init
}
_config[eventName] = value;
}
// clang-format on

// clang-format off
HIPPY_EXPORT_METHOD(removeListener:(NSString *)eventName) {
NSNumber *value = _config[eventName];
if (value == nil || value.integerValue == 1) {
Expand All @@ -70,7 +67,6 @@ - (instancetype)init
_config[eventName] = value;
}
}
// clang-format on

- (void)addEventObserverForName:(__unused NSString *)eventName
{
Expand Down
2 changes: 0 additions & 2 deletions framework/ios/module/exception/HippyExceptionModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ @implementation HippyExceptionModule

HIPPY_EXPORT_MODULE(ExceptionModule)

// clang-format off
HIPPY_EXPORT_METHOD(handleException:(NSString *)title detail:(NSString *)detail
timeInterval:(nonnull NSNumber *)timeInterval
resolver:(__unused HippyPromiseResolveBlock)resolve
Expand Down Expand Up @@ -68,6 +67,5 @@ @implementation HippyExceptionModule
NSError *error = [NSError errorWithDomain:HPErrorDomain code:1 userInfo:errorInfo];
HPFatal(error, @{@"bridge": self.bridge});
}
// clang-format on

@end
4 changes: 0 additions & 4 deletions framework/ios/module/imageloader/HippyImageLoaderModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ @implementation HippyImageLoaderModule
return nil;
}

// clang-format off
HIPPY_EXPORT_METHOD(getSize:(NSString *)urlString resolver:(HippyPromiseResolveBlock)resolve rejecter:(HippyPromiseRejectBlock)reject) {
[self.bridge loadContentsAsynchronouslyFromUrl:urlString
method:@"Get"
Expand Down Expand Up @@ -93,9 +92,7 @@ @implementation HippyImageLoaderModule
}
}];
}
// clang-format on

// clang-format off
HIPPY_EXPORT_METHOD(prefetch:(NSString *)urlString) {
[self.bridge loadContentsAsynchronouslyFromUrl:urlString
method:@"Get"
Expand All @@ -107,6 +104,5 @@ @implementation HippyImageLoaderModule

}];
}
// clang-format on

@end
Loading

0 comments on commit eec0d79

Please sign in to comment.