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

Unified Diff: lib/compat.js

Issue 29339346: Noissue - Removed obsolete nsIURI compatbility code (Closed)
Patch Set: Created April 4, 2016, 11:20 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 | « no previous file | lib/utils.js » ('j') | lib/utils.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compat.js
===================================================================
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -133,31 +133,6 @@
var Services =
{
- io: {
- newURI: function(uri)
Sebastian Noack 2016/04/04 11:22:26 These functions aren't called (directly) on Chrome
- {
- if (!uri.length || uri[0] == "~")
- throw new Error("Invalid URI");
-
- /^([^:\/]*)/.test(uri);
- var scheme = RegExp.$1.toLowerCase();
-
- return {
- scheme: scheme,
- spec: uri,
- QueryInterface: function()
- {
- return this;
- }
- };
- },
- newFileURI: function(file)
- {
- var result = this.newURI("file:///" + file.path);
- result.file = file;
- return result;
- }
- },
obs: {
addObserver: function() {},
removeObserver: function() {}
« no previous file with comments | « no previous file | lib/utils.js » ('j') | lib/utils.js » ('J')

Powered by Google App Engine
This is Rietveld