From c2575c494453e0541c0d94d33fa63eefa1cb2121 Mon Sep 17 00:00:00 2001 From: shelley vohr Date: Tue, 20 Feb 2018 19:52:33 -0500 Subject: [PATCH] remove app.getAppMemoryInfo (#11985) * remove app.getMemoryInfo * semicolons are important --- atom/browser/api/atom_api_app.cc | 3 +-- docs/api/app.md | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index dd2474252c0c..5afd41421bd8 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -1256,7 +1256,6 @@ void App::BuildPrototype( .SetMethod("getFileIcon", &App::GetFileIcon) .SetMethod("getAppMetrics", &App::GetAppMetrics) .SetMethod("getGPUFeatureStatus", &App::GetGPUFeatureStatus) - .SetMethod("enableMixedSandbox", &App::EnableMixedSandbox) // TODO(juturu): Remove in 2.0, deprecate before then with warnings #if defined(OS_MACOSX) .SetMethod("moveToApplicationsFolder", &App::MoveToApplicationsFolder) @@ -1266,7 +1265,7 @@ void App::BuildPrototype( .SetMethod("startAccessingSecurityScopedResource", &App::StartAccessingSecurityScopedResource) #endif - .SetMethod("getAppMemoryInfo", &App::GetAppMetrics); + .SetMethod("enableMixedSandbox", &App::EnableMixedSandbox); } } // namespace api diff --git a/docs/api/app.md b/docs/api/app.md index fb65b69b68f7..926d1dde8ffc 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -844,11 +844,6 @@ disables that behaviour. This method can only be called before app is ready. -### `app.getAppMemoryInfo()` _Deprecated_ - -Returns [`ProcessMetric[]`](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app. -**Note:** This method is deprecated, use `app.getAppMetrics()` instead. - ### `app.getAppMetrics()` Returns [`ProcessMetric[]`](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.