Unreviewed, rolling out r143100.
[WebKit-https.git] / Source / WebCore / inspector / front-end / UISourceCode.js
index 72bac8a8182d2987700c11f6544ec101ee61f71f..b14fcaf06bafc737b2a1b8be58b19009ef394b4f 100644 (file)
@@ -81,37 +81,6 @@ WebInspector.UISourceCode.Events = {
     SourceMappingChanged: "SourceMappingChanged",
 }
 
-/**
- * @param {string} projectId
- * @param {string} path
- * @return {string}
- */
-WebInspector.UISourceCode.uri = function(projectId, path)
-{
-    if (!projectId)
-        return path;
-    if (!path)
-        return projectId;
-    return projectId + "/" + path;
-}
-
-/**
- * @param {string} projectId
- * @param {string} uri
- * @return {?string}
- */
-WebInspector.UISourceCode.path = function(projectId, uri)
-{
-    if (!projectId)
-        return uri;
-    if (!uri.startsWith(projectId))
-        return null;
-    var path = uri.substr(projectId.length);
-    if (path.length && path[0] === "/")
-        path = path.substr(1);
-    return path;
-}
-
 WebInspector.UISourceCode.prototype = {
     /**
      * @return {string}
@@ -134,7 +103,7 @@ WebInspector.UISourceCode.prototype = {
      */
     uri: function()
     {
-        return WebInspector.UISourceCode.uri(this._project.id(), this._path);
+        return this._path;
     },
 
     /**