Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java

Issue 29355392: Issue 4485 - Clear cache directory (Closed)
Patch Set: Created Sept. 30, 2016, 2:48 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
@@ -58,17 +58,16 @@ final class Subscriptions
public boolean wasUnitialized()
{
return this.wasUnitialized;
}
public File createAndWriteFile() throws IOException
{
- // TODO cache cleanups
for (;;)
{
final File file = new File(this.cacheFolder, String.format("tmp-%d.txt",
(int) (Math.random() * 1e8)));
if (!file.exists())
{
Log.d(TAG, "Writing filters to " + file);
this.writeFile(file);

Powered by Google App Engine
This is Rietveld