mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Remove unused code
This commit is contained in:
parent
066ac591ac
commit
a356ecf9b6
@ -10,9 +10,6 @@ getBuilderLogPushEndpoint = (baseUrl, buildId, owner, app) ->
|
|||||||
args = querystring.stringify({ owner, app, buildId })
|
args = querystring.stringify({ owner, app, buildId })
|
||||||
"https://builder.#{baseUrl}/v1/pushLogs?#{args}"
|
"https://builder.#{baseUrl}/v1/pushLogs?#{args}"
|
||||||
|
|
||||||
formatImageName = (image) ->
|
|
||||||
image.split('/').pop()
|
|
||||||
|
|
||||||
bufferImage = (docker, imageId, bufferFile) ->
|
bufferImage = (docker, imageId, bufferFile) ->
|
||||||
Promise = require('bluebird')
|
Promise = require('bluebird')
|
||||||
streamUtils = require('./streams')
|
streamUtils = require('./streams')
|
||||||
@ -25,10 +22,6 @@ bufferImage = (docker, imageId, bufferFile) ->
|
|||||||
.tap (bufferedStream) ->
|
.tap (bufferedStream) ->
|
||||||
bufferedStream.length = imageSize
|
bufferedStream.length = imageSize
|
||||||
|
|
||||||
getSpinner = (message) ->
|
|
||||||
visuals = require('resin-cli-visuals')
|
|
||||||
return new visuals.Spinner(message)
|
|
||||||
|
|
||||||
showPushProgress = (message) ->
|
showPushProgress = (message) ->
|
||||||
visuals = require('resin-cli-visuals')
|
visuals = require('resin-cli-visuals')
|
||||||
progressBar = new visuals.Progress(message)
|
progressBar = new visuals.Progress(message)
|
||||||
@ -114,7 +107,6 @@ opts must be a hash with the following keys:
|
|||||||
- shouldUploadLogs
|
- shouldUploadLogs
|
||||||
###
|
###
|
||||||
module.exports = (docker, logger, token, username, url, opts) ->
|
module.exports = (docker, logger, token, username, url, opts) ->
|
||||||
_ = require('lodash')
|
|
||||||
tmp = require('tmp')
|
tmp = require('tmp')
|
||||||
tmpNameAsync = Promise.promisify(tmp.tmpName)
|
tmpNameAsync = Promise.promisify(tmp.tmpName)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user