While working on the metadata enhancements I've realised that there are quite a few lines of dead code. Even the entire file of document-metadata.cpp|h seems to be left overs from 0.48 when Document Metadata was in its own window (now within document properties).
With limited testing going on (or perhaps just me missing out on it?) what is the best practice to remove as much dead code as possible and nothing more without breaking stuff?
### On a more specific problem I've just tested to remove src/ui/dialog/document-metadata.cpp|h from Makefile_insert and done a clean build though I ended up with a compilation error that I've a hard time understanding. First of all I think that the DocumentMetadata is instantiated somewhere though the error message points to panel-dialog.h which is a template and to "/panel/home-dialog.h" which is a file I don't think exists in the source. Any help is appreciated.
Last lines from "make" error attached in text file.
Code available at https://code.launchpad.net/~inkscape.dev/inkscape/document-metadata-code-cle...
Regards