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

Unified Diff: src/JsEngine.cpp

Issue 10011043: Move ABP JS code loading to FilterEngine and make it optional (Closed)
Patch Set: Created April 2, 2013, 10:32 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
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/JsEngine.cpp
===================================================================
--- a/src/JsEngine.cpp
+++ b/src/JsEngine.cpp
@@ -3,8 +3,6 @@
#include "ConsoleJsObject.h"
-extern const char* jsSources[];
-
namespace
{
v8::Handle<v8::Context> CreateContext(
@@ -69,8 +67,6 @@
ErrorCallback* const errorCallback)
: fileReader(fileReader), context(CreateContext(*errorCallback))
{
- for (int i = 0; jsSources[i] && jsSources[i + 1]; i += 2)
- Evaluate(jsSources[i + 1], jsSources[i]);
}
void AdblockPlus::JsEngine::Evaluate(const char* source, const char* filename)
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld