diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2019-02-25 04:17:25 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2019-02-25 04:17:25 +0300 |
commit | ecaa08cc284f4ea31fa1a181f909fef01eb48b05 (patch) | |
tree | 704294d367bddb2a1aa879943cd0ef5e2a9aa738 /app | |
parent | a2d7dcae38777992ac9689f08bbc39c84377af9e (diff) | |
parent | 532d43d52c24e8250c35095f587cbaf23992b9f2 (diff) |
Merge branch 'winh-remove-convertPermissionToBoolean' into 'master'
Remove convertPermissionToBoolean() from common_utils.js
See merge request gitlab-org/gitlab-ce!25454
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index 29fe460017e..a73cdb73690 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -456,21 +456,6 @@ export const historyPushState = newUrl => { export const parseBoolean = value => (value && value.toString()) === 'true'; /** - * Converts permission provided as strings to booleans. - * - * @param {String} string - * @returns {Boolean} - */ -export const convertPermissionToBoolean = permission => { - if (process.env.NODE_ENV !== 'production') { - // eslint-disable-next-line no-console - console.warn('convertPermissionToBoolean is deprecated! Please use parseBoolean instead.'); - } - - return parseBoolean(permission); -}; - -/** * @callback backOffCallback * @param {Function} next * @param {Function} stop |