remove logs in Context, which displayed plaintext names

git-svn-id: http://encfs.googlecode.com/svn/trunk@30 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
Valient Gough 2008-07-01 07:44:39 +00:00
parent ba74a77b3d
commit ff1c0828d8

View File

@ -110,13 +110,11 @@ shared_ptr<FileNode> EncFS_Context::lookupNode(const char *path)
FileMap::iterator it = openFiles.find( std::string(path) );
if(it != openFiles.end())
{
rInfo("found existing node for %s", path);
// all the items in the set point to the same node.. so just use the
// first
return (*it->second.begin())->node;
} else
{
rInfo("no node found for %s", path);
return shared_ptr<FileNode>();
}
}
@ -147,8 +145,6 @@ void *EncFS_Context::putNode(const char *path,
Placeholder *pl = new Placeholder( node );
openFiles[ std::string(path) ].insert(pl);
rInfo("added open node record for %s", path);
return (void *)pl;
}
@ -165,11 +161,9 @@ void EncFS_Context::eraseNode(const char *path, void *pl)
rAssert(rmCount == 1);
rInfo("released open node record for %s", path);
// if no more references to this file, remove the record all together
if(it->second.empty())
{
rInfo("last open node closed for %s", path);
// attempts to make use of shallow copy to clear memory used to hold
// unencrypted filenames.. not sure this does any good..
std::string storedName = it->first;