Get rid of FileInfo::getNumberofLinks().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9384 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-12-15 21:40:11 +00:00
parent a8a909f25a
commit f88dfdc0dc
5 changed files with 8 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2004-12-15 Angus Leeming <leeming@lyx.org>
* FormFiledialog.C (Reread): no longer use FileInfo::getNumberOfLinks().
2004-12-14 Angus Leeming <leeming@lyx.org>
* FormFiledialog.C: (FileDlgCB): use os::homepath(), not

View File

@ -303,7 +303,6 @@ void FileDialog::Private::Reread()
continue;
mode = fileInfo.modeString();
unsigned int const nlink = fileInfo.getNumberOfLinks();
string const user = lyxUserCache.find(fileInfo.getUid());
string const group = lyxGroupCache.find(fileInfo.getGid());
@ -324,7 +323,6 @@ void FileDialog::Private::Reread()
}
string buffer = mode + ' ' +
tostr(nlink) + ' ' +
user + ' ' +
group + ' ' +
Time.substr(4, string::npos) + ' ';

View File

@ -1,3 +1,7 @@
2004-12-15 Angus Leeming <leeming@lyx.org>
* FileInfo.[Ch] (getNumberOfLinks): removed.
2004-12-15 Angus Leeming <leeming@lyx.org>
* tempname.C: #include fcntl.h and sys/stat.h if creating a temp

View File

@ -278,13 +278,6 @@ time_t FileInfo::getStatusChangeTime() const
}
nlink_t FileInfo::getNumberOfLinks() const
{
BOOST_ASSERT(isOK());
return buf_.st_nlink;
}
uid_t FileInfo::getUid() const
{
BOOST_ASSERT(isOK());

View File

@ -70,9 +70,6 @@ public:
/// Total file size in bytes
off_t getSize() const;
/// Number of hard links
nlink_t getNumberOfLinks() const;
/// User ID of owner
uid_t getUid() const;