Skip to content

Commit

Permalink
chore: remove leftovers from memory property removal from app.getAppM…
Browse files Browse the repository at this point in the history
…etrics() (#18423)
  • Loading branch information
miniak authored and codebytere committed May 28, 2019
1 parent 610f616 commit 49d6f5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions docs/api/structures/memory-info.md

This file was deleted.

12 changes: 0 additions & 12 deletions lib/browser/api/app.js
Expand Up @@ -38,18 +38,6 @@ Object.assign(app, {

app.getFileIcon = deprecate.promisify(app.getFileIcon)

const nativeAppMetrics = app.getAppMetrics
app.getAppMetrics = () => {
const metrics = nativeAppMetrics.call(app)
for (const metric of metrics) {
if ('memory' in metric) {
deprecate.removeProperty(metric, 'memory')
}
}

return metrics
}

app.isPackaged = (() => {
const execFile = path.basename(process.execPath).toLowerCase()
if (process.platform === 'win32') {
Expand Down

0 comments on commit 49d6f5c

Please sign in to comment.