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

Unified Diff: src/JsEngine.cpp

Issue 10297026: Remove JsEngine::Load() (Closed)
Patch Set: Created April 18, 2013, 1:34 p.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 | « include/AdblockPlus/JsEngine.h ('k') | test/JsEngine.cpp » ('j') | 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
@@ -69,14 +69,6 @@
return JsValuePtr(new JsValue(*this, result));
}
-void AdblockPlus::JsEngine::Load(const std::string& scriptPath)
-{
- const std::tr1::shared_ptr<std::istream> file = GetFileSystem()->Read(scriptPath);
- if (!file || !*file)
- throw std::runtime_error("Unable to load script " + scriptPath);
- Evaluate(Utils::Slurp(*file));
-}
-
void AdblockPlus::JsEngine::Gc()
{
while (!v8::V8::IdleNotification());
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | test/JsEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld