mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
a8a909f25a
commit
f88dfdc0dc
@ -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
|
||||
|
@ -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) + ' ';
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user