diff --git a/man/kio_man.cpp b/man/kio_man.cpp --- a/man/kio_man.cpp +++ b/man/kio_man.cpp @@ -129,9 +129,6 @@ { assert(!_self); _self = this; - const QString common_dir = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "doc/HTML/en/kdoctools5-common/kde-default.css" ); - const QString strPath=QString( "file:%1/en/kdoctools5-common" ).arg( common_dir ); - m_cssPath=strPath.toLocal8Bit(); // ### TODO encode for CSS section_names << "0" << "0p" << "1" << "1p" << "2" << "3" << "3n" << "3p" << "4" << "5" << "6" << "7" << "8" << "9" << "l" << "n"; @@ -501,7 +498,6 @@ if (pageFound) { - setResourcePath(m_cssPath); setCssFile(m_manCSSFile); m_outputBuffer.open(QIODevice::WriteOnly); const QByteArray filename=QFile::encodeName(foundPages[0]); diff --git a/man/man2html.h b/man/man2html.h --- a/man/man2html.h +++ b/man/man2html.h @@ -14,15 +14,6 @@ /** call this with the buffer you have */ void scan_man_page(const char *man_page); -/** - * Set the paths to KDE resources - * - * \param cssPath Path to the KDE resources, encoded for CSS - * \since 3.5 - * - */ -extern void setResourcePath(const QByteArray& _cssPath); - /* * Sets the path to a CSS file that should be included with the generated * HTML output. diff --git a/man/man2html.cpp b/man/man2html.cpp --- a/man/man2html.cpp +++ b/man/man2html.cpp @@ -619,15 +619,10 @@ static QList s_argumentList; -static QByteArray cssPath, cssFile; +static QByteArray cssFile; static QByteArray s_dollarZero; // Value of $0 -void setResourcePath(const QByteArray& _cssPath) -{ - cssPath = _cssPath; -} - void setCssFile(const QByteArray& _cssFile) { cssFile = _cssFile; @@ -6103,7 +6098,6 @@ #ifndef KIO_MAN_TEST int main(int argc, char **argv) { - cssPath = "."; // krazy:exclude=doublequote_chars if (argc < 2) { std::cerr << "call: " << argv[0] << " \n";