Commit 80fcc83f authored by Michael Schloh von Bennewitz's avatar Michael Schloh von Bennewitz Committed by Mike Perry
Browse files

Bug #9701: Prevent ClipBoardCache from writing to disk.

This disables the disk activity entirely. It seems as though there is no
reason in to write backup copies of clipboard data to disk, as the clipboard
code does not release the related memory upon disk writes anyway.

parent 90a820bc
......@@ -58,6 +58,7 @@ DataStruct::~DataStruct()
DataStruct::SetData ( nsISupports* aData, uint32_t aDataLen )
#if 0 // Remove unnecessary disk caching to accommodate
// Now, check to see if we consider the data to be "too large"
if (aDataLen > kLargeDatasetSize) {
// if so, cache it to disk instead of memory
......@@ -66,6 +67,7 @@ DataStruct::SetData ( nsISupports* aData, uint32_t aDataLen )
NS_WARNING("Oh no, couldn't write data to the cache file");
#endif // #if 0
mData = aData;
mDataLen = aDataLen;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment