mirror of https://github.com/status-im/metro.git
entry point: remove unused code
Summary: Removes code that is no longer used Reviewed By: matryoshcow Differential Revision: D4021932 fbshipit-source-id: d73dc8450478288afd71eab451a30a505e7de945
This commit is contained in:
parent
89c0132d50
commit
6ac3ae73a3
|
@ -16,53 +16,7 @@ var debug = require('debug');
|
|||
var Activity = require('./src/Activity');
|
||||
|
||||
exports.createServer = createServer;
|
||||
exports.middleware = function(options) {
|
||||
var server = createServer(options);
|
||||
return server.processRequest.bind(server);
|
||||
};
|
||||
|
||||
exports.Activity = Activity;
|
||||
|
||||
// Renamed "package" to "bundle". But maintain backwards
|
||||
// compat.
|
||||
exports.buildPackage =
|
||||
exports.buildBundle = function(options, bundleOptions) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.buildBundle(bundleOptions)
|
||||
.then(function(p) {
|
||||
server.end();
|
||||
return p;
|
||||
});
|
||||
};
|
||||
|
||||
exports.buildPrepackBundle = function(options, bundleOptions) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.buildPrepackBundle(bundleOptions)
|
||||
.then(function(p) {
|
||||
server.end();
|
||||
return p;
|
||||
});
|
||||
};
|
||||
|
||||
exports.buildPackageFromUrl =
|
||||
exports.buildBundleFromUrl = function(options, reqUrl) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.buildBundleFromUrl(reqUrl)
|
||||
.then(function(p) {
|
||||
server.end();
|
||||
return p;
|
||||
});
|
||||
};
|
||||
|
||||
exports.getDependencies = function(options, bundleOptions) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.getDependencies(bundleOptions)
|
||||
.then(function(r) {
|
||||
server.end();
|
||||
return r.dependencies;
|
||||
});
|
||||
};
|
||||
|
||||
exports.getOrderedDependencyPaths = function(options, bundleOptions) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.getOrderedDependencyPaths(bundleOptions)
|
||||
|
|
Loading…
Reference in New Issue