Remove unused code.
This commit is contained in:
parent
40423a0547
commit
7d1d34d1eb
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export async function create ({name}) {
|
export async function create ({name}) {
|
||||||
return Date.now() // Dummy id
|
return Date.now() // Dummy id
|
||||||
}
|
}
|
||||||
|
|
||||||
create.description = 'creates a new group'
|
create.description = 'creates a new group'
|
||||||
create.permission = 'admin'
|
create.permission = 'admin'
|
||||||
|
17
src/xo.js
17
src/xo.js
@ -1,5 +1,4 @@
|
|||||||
import Bluebird from 'bluebird'
|
import Bluebird from 'bluebird'
|
||||||
import createDebug from 'debug'
|
|
||||||
import forEach from 'lodash.foreach'
|
import forEach from 'lodash.foreach'
|
||||||
import includes from 'lodash.includes'
|
import includes from 'lodash.includes'
|
||||||
import isEmpty from 'lodash.isempty'
|
import isEmpty from 'lodash.isempty'
|
||||||
@ -26,10 +25,6 @@ import {Tokens} from './models/token'
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
const debug = createDebug('xo:xo')
|
|
||||||
|
|
||||||
// ===================================================================
|
|
||||||
|
|
||||||
class NoSuchAuthenticationToken extends NoSuchObject {
|
class NoSuchAuthenticationToken extends NoSuchObject {
|
||||||
constructor (id) {
|
constructor (id) {
|
||||||
super(id, 'authentication token')
|
super(id, 'authentication token')
|
||||||
@ -50,18 +45,6 @@ class NoSuchXenServer extends NoSuchObject {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
const PERSITENT_TYPES = {
|
|
||||||
|
|
||||||
}
|
|
||||||
const isObjectPersistent = object => object.$type in PERSITENT_TYPES
|
|
||||||
|
|
||||||
const PUBLIC_TYPES = {
|
|
||||||
|
|
||||||
}
|
|
||||||
const isObjectPublic = object => object.$type in PUBLIC_TYPES
|
|
||||||
|
|
||||||
// ===================================================================
|
|
||||||
|
|
||||||
export default class Xo extends EventEmitter {
|
export default class Xo extends EventEmitter {
|
||||||
constructor () {
|
constructor () {
|
||||||
super()
|
super()
|
||||||
|
Loading…
Reference in New Issue
Block a user