Skip to content
Myr

Removed some unused methods

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent cd8efdb · Browse files · 1 file+8 added−39 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−39 removed

  • other:+8 added−39 removed

1 file+8 added−39 removed

modified:lib/express.core.js+8 added-39 removed
635 unmodified lines
636 options : options,637 callback : callback638 })639 }640 },641 642 readFile : function(path, callback, errorCallback) {643 var promise = node.fs.cat(path, "utf8")644 errorCallback = errorCallback || function(){645 throw "failed to read file `" + path + "'"646 }647 promise.addCallback(callback)648 promise.addErrback(errorCallback)649 },650 651 parseView : function(contents, context) {652 653 },654 655 display : function(path) {656 640 }641 }642 660 // --- Core Modules661 662 use(Express.BodyDecoder)663 use(Express.FauxMethod)664 use(Express.ContentLength)665 use(Express.DefaultContentType)666 use(Express.RedirectHelpers)667 643 // --- Expose644 645 get = Express.routeFunctionFor('get')646 post = Express.routeFunctionFor('post')647 del = Express.routeFunctionFor('delete')648 put = Express.routeFunctionFor('put')649 use = Express.addModule650651 // --- Core Modules652 653 use(Express.BodyDecoder)654 use(Express.FauxMethod)655 use(Express.ContentLength)656 use(Express.DefaultContentType)657 use(Express.RedirectHelpers)658 659})()677678get('user', function(){679 '<form action="/user" method="post"><input type="hidden" name="_method" value="put" /><input type="submit" /></form>'680})681682put('user', function(){683 p('PUT')684})685686del('user', function(){687 p('DELETE')688})689690Express.start()