diff --git a/lib/resource/IResource.d.ts b/lib/resource/IResource.d.ts index c9619bb4..e33119f6 100644 --- a/lib/resource/IResource.d.ts +++ b/lib/resource/IResource.d.ts @@ -27,8 +27,6 @@ export interface IResource { delete(callback: SimpleCallback): any; moveTo(parent: IResource, newName: string, overwrite: boolean, callback: SimpleCallback): any; rename(newName: string, callback: Return2Callback): any; - isSame(resource: IResource, callback: ReturnCallback): any; - isOnTheSameFSWith(resource: IResource, callback: ReturnCallback): any; write(targetSource: boolean, callback: ReturnCallback): any; read(targetSource: boolean, callback: ReturnCallback): any; mimeType(targetSource: boolean, callback: ReturnCallback): any; diff --git a/lib/resource/std/StandardResource.d.ts b/lib/resource/std/StandardResource.d.ts index 5899804e..cdbc5e7c 100644 --- a/lib/resource/std/StandardResource.d.ts +++ b/lib/resource/std/StandardResource.d.ts @@ -14,8 +14,6 @@ export declare abstract class StandardResource implements IResource { dateCreation: number; dateLastModified: number; constructor(parent: IResource, fsManager: FSManager); - isSame(resource: IResource, callback: ReturnCallback): void; - isOnTheSameFSWith(resource: IResource, callback: ReturnCallback): void; getAvailableLocks(callback: ReturnCallback): void; getLocks(callback: ReturnCallback): void; setLock(lock: Lock, callback: SimpleCallback): void; diff --git a/lib/resource/std/StandardResource.js b/lib/resource/std/StandardResource.js index 3bd2995b..f571d048 100644 --- a/lib/resource/std/StandardResource.js +++ b/lib/resource/std/StandardResource.js @@ -29,12 +29,6 @@ var StandardResource = (function () { .done(function (sizes) { return callback(null, sizes.reduce(function (o, s) { return o + s; }, 0)); }); }); }; - StandardResource.prototype.isSame = function (resource, callback) { - callback(null, resource === this); - }; - StandardResource.prototype.isOnTheSameFSWith = function (resource, callback) { - callback(null, resource.fsManager === this.fsManager); - }; StandardResource.prototype.getAvailableLocks = function (callback) { callback(null, [ new LockKind_1.LockKind(LockScope_1.LockScope.Exclusive, LockType_1.LockType.Write), diff --git a/src/resource/IResource.ts b/src/resource/IResource.ts index 5fbd5328..bcc3cedf 100644 --- a/src/resource/IResource.ts +++ b/src/resource/IResource.ts @@ -42,10 +42,6 @@ export interface IResource delete(callback : SimpleCallback) moveTo(parent : IResource, newName : string, overwrite : boolean, callback : SimpleCallback) rename(newName : string, callback : Return2Callback) - - // ****************************** Tests ****************************** // - isSame(resource : IResource, callback : ReturnCallback) - isOnTheSameFSWith(resource : IResource, callback : ReturnCallback) // ****************************** Content ****************************** // write(targetSource : boolean, callback : ReturnCallback) diff --git a/src/resource/std/StandardResource.ts b/src/resource/std/StandardResource.ts index a02d8156..c315de68 100644 --- a/src/resource/std/StandardResource.ts +++ b/src/resource/std/StandardResource.ts @@ -47,16 +47,6 @@ export abstract class StandardResource implements IResource this.dateLastModified = this.dateCreation; } - // ****************************** Tests ****************************** // - isSame(resource : IResource, callback : ReturnCallback) - { - callback(null, resource === (this as object)); - } - isOnTheSameFSWith(resource : IResource, callback : ReturnCallback) - { - callback(null, resource.fsManager === this.fsManager); - } - // ****************************** Locks ****************************** // getAvailableLocks(callback : ReturnCallback) {