From f819d860c2c6cf57857e92ed0d49d2065581f5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 11 Sep 2007 21:52:30 +0000 Subject: [PATCH] remove unused code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20230 a592a061-630c-0410-9148-cb99ea01b6c8 --- .../controllers/frontend_helpers.cpp | 71 ++++++------------- src/frontends/controllers/frontend_helpers.h | 3 - 2 files changed, 23 insertions(+), 51 deletions(-) diff --git a/src/frontends/controllers/frontend_helpers.cpp b/src/frontends/controllers/frontend_helpers.cpp index 4311a762fd..5ff3b865fd 100644 --- a/src/frontends/controllers/frontend_helpers.cpp +++ b/src/frontends/controllers/frontend_helpers.cpp @@ -48,6 +48,26 @@ using std::endl; namespace lyx { namespace frontend { +using support::addName; +using support::bformat; +using support::contains; +using support::FileFilterList; +using support::FileName; +using support::getExtension; +using support::getFileContents; +using support::getVectorFromString; +using support::libFileSearch; +using support::makeAbsPath; +using support::makeRelPath; +using support::onlyFilename; +using support::onlyPath; +using support::package; +using support::prefixIs; +using support::quoteName; +using support::removeExtension; +using support::Systemcall; +using support::token; + namespace { @@ -93,22 +113,6 @@ vector const getLanguageData(bool character_dlg) return langs; } -} // namespace frontend - -using support::addName; -using support::FileFilterList; -using support::getExtension; -using support::libFileSearch; -using support::makeAbsPath; -using support::makeRelPath; -using support::onlyFilename; -using support::onlyPath; -using support::package; -using support::prefixIs; -using support::removeExtension; - -namespace frontend { - docstring const browseFile(docstring const & filename, docstring const & title, @@ -157,7 +161,6 @@ docstring const browseRelFile(docstring const & filename, } - docstring const browseLibFile(docstring const & dir, docstring const & name, docstring const & ext, @@ -166,10 +169,10 @@ docstring const browseLibFile(docstring const & dir, { // FIXME UNICODE pair const dir1(_("System files|#S#s"), - from_utf8(addName(package().system_support().absFilename(), to_utf8(dir)))); + from_utf8(addName(package().system_support().absFilename(), to_utf8(dir)))); pair const dir2(_("User files|#U#u"), - from_utf8(addName(package().user_support().absFilename(), to_utf8(dir)))); + from_utf8(addName(package().user_support().absFilename(), to_utf8(dir)))); docstring const result = browseFile(from_utf8( libFileSearch(to_utf8(dir), to_utf8(name), to_utf8(ext)).absFilename()), @@ -220,23 +223,6 @@ vector const getLatexUnits() return units; } -} // namespace frontend - - -using support::bformat; -using support::contains; -using support::FileName; -using support::getExtension; -using support::getFileContents; -using support::getVectorFromString; -using support::libFileSearch; -using support::onlyFilename; -using support::package; -using support::quoteName; -using support::Systemcall; -using support::token; - -namespace frontend { void rescanTexStyles() { @@ -251,18 +237,7 @@ void rescanTexStyles() return; // FIXME UNICODE Alert::error(_("Could not update TeX information"), - bformat(_("The script `%s' failed."), lyx::from_utf8(command.absFilename()))); -} - - -void texhash() -{ - // Run texhash in user lyx directory - support::Path p(package().user_support()); - - //path to texhash through system - Systemcall one; - one.startscript(Systemcall::Wait,"texhash"); + bformat(_("The script `%s' failed."), from_utf8(command.absFilename()))); } diff --git a/src/frontends/controllers/frontend_helpers.h b/src/frontends/controllers/frontend_helpers.h index 911eeb9490..cbaaf0a5aa 100644 --- a/src/frontends/controllers/frontend_helpers.h +++ b/src/frontends/controllers/frontend_helpers.h @@ -117,9 +117,6 @@ std::vector const getLatexUnits(); */ void rescanTexStyles(); -/// rebuild the textree -void texhash(); - /** Fill \c contents from one of the three texfiles. * Each entry in the file list is returned as a name_with_path */