remove unneeded code.

 - refs 6e6f28dc07c4fe5844c0ad3c130317c627983571
 - fixes #2094
 - refs #2080

clearing the /web and /cache dirs might be required here.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #2094
| Refs tickets  | #2080 
| License       | MIT
| Doc PR        | -

ping @Guite