Skip to content

Commit

Permalink
No need to change visibility twice
Browse files Browse the repository at this point in the history
Reviewed By: thezhangwei

Differential Revision: D49213736

fbshipit-source-id: 1659689172ecdb2843588acec3dc2453ffc17cf2
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Sep 15, 2023
1 parent f643043 commit 55fbaf1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion libredex/DexUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ bool relocate_method_if_no_changes(DexMethod* method, DexType* to_type) {
set_public(method);
change_visibility(method, to_type);
relocate_method(method, to_type);
change_visibility(method);

return true;
}
Expand Down
1 change: 0 additions & 1 deletion service/class-splitting/ClassSplitting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ void ClassSplitter::cleanup(const Scope& final_scope) {
}
change_visibility(method, target_cls->get_type());
relocate_method(method, target_cls->get_type());
change_visibility(method);
}
TRACE(CS, 2, "[class splitting] Made {%zu} methods static.",
methods_to_staticize.size());
Expand Down

0 comments on commit 55fbaf1

Please sign in to comment.