This is very simple feature in code editor, speccially when we want to temporarly publish proc in package, for example for testing.
Everything works fine , until we have declaration of procedure in the package body. The declaraion is copied into spec, but not deleted from body. In other side when we want to hide procedure, it woluld be better not only delete declaration from spec, but copy into the top of body, visibility of procedure will be unchanged for this package.
Think about it.