From 7762f374d50d3b1df8513c826862c2056e8718f9 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 18 Oct 2016 07:20:35 -0700 Subject: [PATCH] entry point: remove unused code Summary: Removes code that is no longer used Reviewed By: matryoshcow Differential Revision: D4021932 fbshipit-source-id: d73dc8450478288afd71eab451a30a505e7de945 --- packager/react-packager/index.js | 46 -------------------------------- 1 file changed, 46 deletions(-) diff --git a/packager/react-packager/index.js b/packager/react-packager/index.js index 65892a14d..b9c456e98 100644 --- a/packager/react-packager/index.js +++ b/packager/react-packager/index.js @@ -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)