mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Remove commented out code
This commit is contained in:
parent
3f1c8b47eb
commit
a5d81e0a43
@ -35,8 +35,6 @@ class Utils {
|
||||
}
|
||||
|
||||
fileExistsSync(filePath) {
|
||||
// console.log('this.serverless.utils.fileExistsSync being depricated in a future release')
|
||||
// console.log('Please explicitly declare your plugin dependancies')
|
||||
return fileExistsSync(filePath);
|
||||
}
|
||||
|
||||
@ -45,8 +43,6 @@ class Utils {
|
||||
}
|
||||
|
||||
writeFileSync(filePath, contents) {
|
||||
// console.log('this.serverless.utils.writeFileSync being depricated in a future release')
|
||||
// console.log('Please explicitly declare your plugin dependancies')
|
||||
return writeFileSync(filePath, contents);
|
||||
}
|
||||
|
||||
@ -76,8 +72,6 @@ class Utils {
|
||||
}
|
||||
|
||||
readFileSync(filePath) {
|
||||
// console.log('this.serverless.utils.writeFileSync being depricated in a future release')
|
||||
// console.log('Please explicitly declare your plugin dependancies')
|
||||
return readFileSync(filePath);
|
||||
}
|
||||
|
||||
|
||||
@ -11,8 +11,6 @@ const getFrameworkId = require('../../utils/getFrameworkId');
|
||||
const clearConsole = require('../../utils/clearConsole');
|
||||
const userStats = require('../../utils/userStats');
|
||||
const setConfig = require('../../utils/config').set;
|
||||
// segment for future use
|
||||
// const segment = require('../../utils/segment');
|
||||
|
||||
const config = {
|
||||
AUTH0_CLIENT_ID: 'iiEYK0KB30gj94mjB8HP9lhhTgae0Rg3',
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
// const getFrameworkId = require('../../utils/getFrameworkId');
|
||||
// const segment = require('../../utils/segment');
|
||||
const userStats = require('../../utils/userStats');
|
||||
const configUtils = require('../../utils/config');
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ function createConfig() {
|
||||
meta: {
|
||||
created_at: Math.round(+new Date() / 1000),
|
||||
updated_at: null,
|
||||
}
|
||||
},
|
||||
};
|
||||
writeFileAtomic.sync(globalConfigPath, JSON.stringify(config, null, 2));
|
||||
return JSON.parse(readFileSync(globalConfigPath));
|
||||
@ -77,9 +77,6 @@ function deleteConfigValue(key) {
|
||||
return config;
|
||||
}
|
||||
|
||||
// set local config value /project/.serverlessrc
|
||||
// function setLocalConfig() {}
|
||||
|
||||
// set .serverlessrc config value
|
||||
function getConfigValue(objectPath) {
|
||||
const config = getConfig();
|
||||
|
||||
@ -67,7 +67,6 @@ module.exports = function isValidEventName(eventName) {
|
||||
const project = matches[1];
|
||||
const object = matches[2];
|
||||
const action = matches[3];
|
||||
// console.log(`${project}:${object}_${action}`)
|
||||
|
||||
// if missing any parts of event, exit;
|
||||
if (!project || !object || !action) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user