mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
Removed deprecated methods from lib/path.js
This commit is contained in:
parent
a3604cf233
commit
d2c47b4f87
1 changed files with 0 additions and 3 deletions
|
@ -56,9 +56,6 @@ exports.dirname = function (path) {
|
|||
}
|
||||
};
|
||||
|
||||
exports.filename = function () {
|
||||
throw new Error("path.filename is deprecated. Please use path.basename instead.");
|
||||
};
|
||||
exports.basename = function (path, ext) {
|
||||
var f = path.substr(path.lastIndexOf("/") + 1);
|
||||
if (ext && f.substr(-1 * ext.length) === ext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue