Remove unused function get_writeable_symbol#2380
Remove unused function get_writeable_symbol#2380tautschnig wants to merge 1 commit intodiffblue:developfrom
Conversation
The function has no user and no documentation, it's purpose is not entirely obvious, the named parameter was not used -- a lot of code smell overall.
|
@NathanJPhillips could you please take a look at this? |
|
It's an iterator with an explicit write operation -- i.e. default It should definitely be documented, for which I choose @NathanJPhillips (delegation is awesome ;)); I guess its user either died or never got implemented in the end? But a non-const iterator over the symbol table doesn't seem like an unreasonable thing to want. I'm not convinced we should kill it though -- instead we should add docs, remove the needless parameter, and add it to symbol-table-base's unit tests. |
I'm perfectly happy keeping it if it gets documented and cleaned up. I'll happily take all guidance from @NathanJPhillips on how to fix it. |
allredj
left a comment
There was a problem hiding this comment.
Passed Diffblue compatibility checks (cbmc commit: 53a5061).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/76919827
The function has no user and no documentation, it's purpose is not entirely
obvious, the named parameter was not used -- a lot of code smell overall.