From 6ac3ae73a3a879e45212d8818d95ebb6a597a01d 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 --- react-packager/index.js | 46 ----------------------------------------- 1 file changed, 46 deletions(-) diff --git a/react-packager/index.js b/react-packager/index.js index 65892a14..b9c456e9 100644 --- a/react-packager/index.js +++ b/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)