0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

refactor: remove deprecated method

This commit is contained in:
Juan Picado @jotadeveloper 2018-05-20 08:46:11 +02:00
parent 6b7d4e94cf
commit 46f8186f01
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 0 additions and 10 deletions

View file

@ -97,15 +97,6 @@ class Storage implements IStorageHandler {
this.localStorage.mergeTags(name, tagHash, callback);
}
/**
* Tags a package version with a provided tag
Used storages: local (write)
*/
replaceTags(name: string, tagHash: MergeTags, callback: Callback) {
this.logger.warn('method deprecated');
this.localStorage.mergeTags(name, tagHash, callback);
}
/**
* Change an existing package (i.e. unpublish one version)
Function changes a package info from local storage and all uplinks with write access./

View file

@ -83,7 +83,6 @@ export interface IStorageHandler {
init(config: Config): Promise<any>;
addVersion(name: string, version: string, metadata: Version, tag: StringValue, callback: Callback): void;
mergeTags(name: string, tagHash: MergeTags, callback: Callback): void;
replaceTags(name: string, tagHash: MergeTags, callback: Callback): void;
changePackage(name: string, metadata: Package, revision: string, callback: Callback): void;
removePackage(name: string, callback: Callback): void;
removeTarball(name: string, filename: string, revision: string, callback: Callback): void;