mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
chore: remove deprecated shell.moveItemToTrash() (#26723)
This commit is contained in:
@@ -422,12 +422,6 @@ bool MoveItemToTrashWithError(const base::FilePath& path,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MoveItemToTrash(const base::FilePath& path, bool delete_on_fail) {
|
||||
std::string error; // ignored
|
||||
base::win::ScopedCOMInitializer com_initializer;
|
||||
return MoveItemToTrashWithError(path, delete_on_fail, &error);
|
||||
}
|
||||
|
||||
namespace internal {
|
||||
|
||||
bool PlatformTrashItem(const base::FilePath& full_path, std::string* error) {
|
||||
|
||||
Reference in New Issue
Block a user