Browse Source

remove clipboard deprecations

Shelley Vohr 7 years ago
parent
commit
438ac61ff7
2 changed files with 0 additions and 66 deletions
  1. 0 33
      docs/tutorial/planned-breaking-changes.md
  2. 0 33
      lib/common/api/clipboard.js

+ 0 - 33
docs/tutorial/planned-breaking-changes.md

@@ -5,15 +5,6 @@ The following list includes the APIs that will be removed in Electron 3.0.
 There is no timetable for when this release will occur but deprecation
 warnings will be added at least [one major version](electron-versioning.md#semver) beforehand.
 
-## `app`
-
-```js
-// Deprecated
-app.getAppMemoryInfo()
-// Replace with
-app.getAppMetrics()
-```
-
 ## `BrowserWindow`
 
 ```js
@@ -38,30 +29,6 @@ window.on('app-command', (e, cmd) => {
 })
 ```
 
-## `clipboard`
-
-```js
-// Deprecated
-clipboard.readRtf()
-// Replace with
-clipboard.readRTF()
-
-// Deprecated
-clipboard.writeRtf()
-// Replace with
-clipboard.writeRTF()
-
-// Deprecated
-clipboard.readHtml()
-// Replace with
-clipboard.readHTML()
-
-// Deprecated
-clipboard.writeHtml()
-// Replace with
-clipboard.writeHTML()
-```
-
 ## `crashReporter`
 
 ```js

+ 0 - 33
lib/common/api/clipboard.js

@@ -2,41 +2,8 @@ if (process.platform === 'linux' && process.type === 'renderer') {
   // On Linux we could not access clipboard in renderer process.
   module.exports = require('electron').remote.clipboard
 } else {
-  const {deprecate} = require('electron')
   const clipboard = process.atomBinding('clipboard')
 
-  // TODO(codebytere): remove in 3.0
-  clipboard.readHtml = function () {
-    if (!process.noDeprecations) {
-      deprecate.warn('clipboard.readHtml', 'clipboard.readHTML')
-    }
-    return clipboard.readHTML()
-  }
-
-  // TODO(codebytere): remove in 3.0
-  clipboard.writeHtml = function () {
-    if (!process.noDeprecations) {
-      deprecate.warn('clipboard.writeHtml', 'clipboard.writeHTML')
-    }
-    return clipboard.writeHTML()
-  }
-
-  // TODO(codebytere): remove in 3.0
-  clipboard.readRtf = function () {
-    if (!process.noDeprecations) {
-      deprecate.warn('clipboard.readRtf', 'clipboard.writeRTF')
-    }
-    return clipboard.readRTF()
-  }
-
-  // TODO(codebytere): remove in 3.0
-  clipboard.writeRtf = function () {
-    if (!process.noDeprecations) {
-      deprecate.warn('clipboard.writeRtf', 'clipboard.writeRTF')
-    }
-    return clipboard.writeRTF()
-  }
-
   // Read/write to find pasteboard over IPC since only main process is notified
   // of changes
   if (process.platform === 'darwin' && process.type === 'renderer') {