get rid of rmdir

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9555 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2005-01-31 15:12:23 +00:00
parent 13c9092705
commit 177a1c42aa
4 changed files with 8 additions and 25 deletions

View File

@ -1,3 +1,11 @@
2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
* Makefile.am (libsupport_la_SOURCES): remove rmdir.C
* rmdir.C: delete file
* lyxlib.h: remove rmdir decl
2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net> 2005-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
* .cvsignore: add package.C * .cvsignore: add package.C

View File

@ -65,7 +65,6 @@ libsupport_la_SOURCES = \
package.h \ package.h \
putenv.C \ putenv.C \
rename.C \ rename.C \
rmdir.C \
socktools.C \ socktools.C \
socktools.h \ socktools.h \
std_istream.h \ std_istream.h \

View File

@ -44,8 +44,6 @@ int mkdir(std::string const & pathname, unsigned long int mode);
bool putenv(std::string const & varname, std::string const & value); bool putenv(std::string const & varname, std::string const & value);
/// unlink the given file /// unlink the given file
int unlink(std::string const & 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 /// (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 tempName(std::string const & dir = std::string(),
std::string const & mask = std::string()); std::string const & mask = std::string());

View File

@ -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 <config.h>
#include "support/lyxlib.h"
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
int lyx::support::rmdir(std::string const & dir)
{
return ::rmdir(dir.c_str());
}