зеркало из https://github.com/mozilla/gecko-dev.git
Bug 150158 clean up after nsIFile.delete was renamed to .remove p=stevechapel@earthlink.net r=shliang sr=brendan a=asa
This commit is contained in:
Родитель
6acd0b59e3
Коммит
0783e3feac
|
@ -109,8 +109,6 @@ const JSFILE_READ_MODE = "r";
|
|||
const JSFILE_WRITE_MODE = "w";
|
||||
const JSFILE_APPEND_MODE = "a";
|
||||
|
||||
const JSFILE_DELETE = "delete";
|
||||
|
||||
const JSFILE_FILETYPE = 0x00; // 0
|
||||
|
||||
const JSFILE_CHUNK = 1024; // buffer for readline => set to 1k
|
||||
|
@ -181,7 +179,7 @@ var fileExists = this.exists();
|
|||
{
|
||||
try
|
||||
{
|
||||
this.fileInst[JSFILE_DELETE](false);
|
||||
this.fileInst.remove(false);
|
||||
fileExists=false;
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
path = mod.getResultPropertyAt(idx, "path");
|
||||
file = inSearchUtils.createLocalFile(path);
|
||||
if (file) {
|
||||
file["delete"](false);
|
||||
file.remove(false);
|
||||
}
|
||||
}
|
||||
]]></body>
|
||||
|
|
|
@ -904,8 +904,7 @@ function sidebar_revert_to_default_panels() {
|
|||
try {
|
||||
var sidebar_file = sidebar_get_panels_file();
|
||||
|
||||
// Calling delete() with array notation (workaround for bug 37406).
|
||||
sidebar_file["delete"](false);
|
||||
sidebar_file.remove(false);
|
||||
|
||||
// Since we just removed the panels file,
|
||||
// this should copy the defaults over.
|
||||
|
|
Загрузка…
Ссылка в новой задаче