Skip to content

Commit

Permalink
Removed useless exports from 'BeforeAfter.ts' file
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 15, 2017
1 parent 40dba6b commit be66fb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/server/webDAVServer/BeforeAfter.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { MethodCallArgs, WebDAVRequest } from '../WebDAVRequest';
export declare function beforeRequest(manager: WebDAVRequest): void;
export declare function afterRequest(manager: WebDAVRequest): void;
export declare function invokeBARequest(collection: WebDAVRequest[], base: MethodCallArgs, callback: any): void;
export declare function invokeBeforeRequest(base: MethodCallArgs, callback: any): void;
export declare function invokeAfterRequest(base: MethodCallArgs, callback: any): void;
5 changes: 2 additions & 3 deletions lib/server/webDAVServer/BeforeAfter.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ function invokeBARequest(collection, base, callback) {
}
next();
}
exports.invokeBARequest = invokeBARequest;
function invokeBeforeRequest(base, callback) {
this.invokeBARequest(this.beforeManagers, base, callback);
invokeBARequest(this.beforeManagers, base, callback);
}
exports.invokeBeforeRequest = invokeBeforeRequest;
function invokeAfterRequest(base, callback) {
this.invokeBARequest(this.afterManagers, base, callback);
invokeBARequest(this.afterManagers, base, callback);
}
exports.invokeAfterRequest = invokeAfterRequest;
7 changes: 4 additions & 3 deletions src/server/webDAVServer/BeforeAfter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function afterRequest(manager : WebDAVRequest)
this.afterManagers.push(manager);
}

export function invokeBARequest(collection : WebDAVRequest[], base : MethodCallArgs, callback)
function invokeBARequest(collection : WebDAVRequest[], base : MethodCallArgs, callback)
{
function callCallback()
{
Expand Down Expand Up @@ -38,11 +38,12 @@ export function invokeBARequest(collection : WebDAVRequest[], base : MethodCallA
}
next();
}

export function invokeBeforeRequest(base : MethodCallArgs, callback)
{
this.invokeBARequest(this.beforeManagers, base, callback);
invokeBARequest(this.beforeManagers, base, callback);
}
export function invokeAfterRequest(base : MethodCallArgs, callback)
{
this.invokeBARequest(this.afterManagers, base, callback);
invokeBARequest(this.afterManagers, base, callback);
}

0 comments on commit be66fb5

Please sign in to comment.