eos icon indicating copy to clipboard operation
eos copied to clipboard

remove apply_context::all_authorizations_used

Open gleehokie opened this issue 8 years ago • 7 comments

gleehokie avatar Apr 27 '18 20:04 gleehokie

@gleehokie This method isn't tested because it is no longer called. I think it was replaced by the auth checker logic in authorization_manager::check_authorization. We should change this to remove the method.

brianjohnson5972 avatar Apr 30 '18 17:04 brianjohnson5972

@brianjohnson5972 I agree, please remove the dead code

gleehokie avatar May 02 '18 01:05 gleehokie

Both in slim and master repo, all_authorizations_used() is not being used. Hence no unit tests are written.

Marking this request for unit tests as closed

dhaneshvb avatar May 02 '18 09:05 dhaneshvb

@dhaneshvb This ticket has been changed to be "remove apply_context::all_authorizations_used", so the task is now to remove the code.

brianjohnson5972 avatar May 03 '18 03:05 brianjohnson5972

@arhag I think you have some work that will conflict with this, please brief here so Dhanesh know what to do

gleehokie avatar May 09 '18 15:05 gleehokie

@dhaneshvb Feel free to remove it. It didn't conflict with any of my work, but anyway my work on authorizations is already merged in at this point.

Also, while you are removing apply_context::all_authorizations_used(), you can also remove apply_context::unused_authorizations() and the used_authorizations field in apply_context. All of that is dead code.

arhag avatar May 10 '18 00:05 arhag

@arhag , I am on it. Will submit the pull request in an hour with the updates, thank you

dhaneshvb avatar May 10 '18 01:05 dhaneshvb