From 177a1c42aac39d3546026d804a5d334d26606269 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Mon, 31 Jan 2005 15:12:23 +0000 Subject: [PATCH] get rid of rmdir git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9555 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 8 ++++++++ src/support/Makefile.am | 1 - src/support/lyxlib.h | 2 -- src/support/rmdir.C | 22 ---------------------- 4 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 src/support/rmdir.C diff --git a/src/support/ChangeLog b/src/support/ChangeLog index f324dc6963..29bfff2cc3 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,11 @@ +2005-01-31 Lars Gullik Bjonnes + + * Makefile.am (libsupport_la_SOURCES): remove rmdir.C + + * rmdir.C: delete file + + * lyxlib.h: remove rmdir decl + 2005-01-31 Lars Gullik Bjonnes * .cvsignore: add package.C diff --git a/src/support/Makefile.am b/src/support/Makefile.am index e70b2c6e48..a039c82768 100644 --- a/src/support/Makefile.am +++ b/src/support/Makefile.am @@ -65,7 +65,6 @@ libsupport_la_SOURCES = \ package.h \ putenv.C \ rename.C \ - rmdir.C \ socktools.C \ socktools.h \ std_istream.h \ diff --git a/src/support/lyxlib.h b/src/support/lyxlib.h index 4b5569967c..235a113744 100644 --- a/src/support/lyxlib.h +++ b/src/support/lyxlib.h @@ -44,8 +44,6 @@ int mkdir(std::string const & pathname, unsigned long int mode); bool putenv(std::string const & varname, std::string const & value); /// unlink the given file int unlink(std::string const & file); -/// remove the given directory -int rmdir(std::string const & file); /// (securely) create a temporary file in the given dir with the given prefix std::string const tempName(std::string const & dir = std::string(), std::string const & mask = std::string()); diff --git a/src/support/rmdir.C b/src/support/rmdir.C deleted file mode 100644 index ffa86f1199..0000000000 --- a/src/support/rmdir.C +++ /dev/null @@ -1,22 +0,0 @@ -/** - * \file rmdir.C - * This file is part of LyX, the document processor. - * Licence details can be found in the file COPYING. - * - * \author Lars Gullik Bjønnes - * - * Full author contact details are available in file CREDITS. - */ - -#include - -#include "support/lyxlib.h" - -#ifdef HAVE_UNISTD_H -# include -#endif - -int lyx::support::rmdir(std::string const & dir) -{ - return ::rmdir(dir.c_str()); -} -- 2.39.5