Skip to content

Commit 1018e32

Browse files
authored
Merge pull request #1766 from implausible/dedupe-fetch
Dedupe Remote.prototype.fetch
2 parents f55a66d + 1507003 commit 1018e32

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/remote.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,6 @@ Remote.prototype.push = function(refSpecs, opts) {
132132
*/
133133
Remote.prototype.referenceList = Remote.prototype.referenceList;
134134

135-
/**
136-
* Connects to a remote
137-
*
138-
* @async
139-
* @param {Array} refSpecs The ref specs that should be pushed
140-
* @param {FetchOptions} opts The fetch options for download, contains callbacks
141-
* @param {String} message The message to use for the update reflog messages
142-
* @param {Function} callback
143-
* @return {Number} error code
144-
*/
145-
Remote.prototype.fetch = function(refspecs, opts, reflog_message) {
146-
return _fetch
147-
.call(this, refspecs, normalizeFetchOptions(opts), reflog_message);
148-
};
149-
150135
/**
151136
* Update the tips to the new state
152137
* @param {RemoteCallbacks} callbacks The callback functions for the connection

0 commit comments

Comments
 (0)