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: Completly remove Utils.makeURI() Created April 4, 2016, 1:44 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 | « 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)
- {
- 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