From c4a50f1dfabf429024aee83274ae4c65c38d7f92 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Mon, 24 Nov 2014 19:44:06 -0600 Subject: [PATCH] Run CodeMaid --- gm/gm-tests.ts | 18 ------------------ gm/gm.d.ts | 6 +++--- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/gm/gm-tests.ts b/gm/gm-tests.ts index 11fab8777dfd96..e3172dfc6a4898 100644 --- a/gm/gm-tests.ts +++ b/gm/gm-tests.ts @@ -177,11 +177,9 @@ gm(src) .monochrome() .morph(src, dest) .morph(src, dest, (err, stdout, stderr, cmd) => { - }) .morph(images, dest) .morph(images, dest, (err, stdout, stderr, cmd) => { - }) .mosaic() .motionBlur(radius) @@ -260,13 +258,10 @@ gm(src) .threshold(threshold) .threshold(threshold, usePercent) .thumb(width, height, dest, (err, stdout, stderr, cmd) => { - }) .thumb(width, height, dest, quality, (err, stdout, stderr, cmd) => { - }) .thumb(width, height, dest, quality, align, (err, stdout, stderr, cmd) => { - }) .tile(file) .title(name) @@ -294,28 +289,20 @@ gm(src) .window(name) .windowGroup() .color((err, color) => { - }) .depth((err, bitdepth) => { - }) .filesize((err, size) => { - }) .format((err, format) => { - }) .identify((err, info) => { - }) .res((err, resolution) => { - }) .size((err, size) => { - }) .orientation((err, orient) => { - }) .draw(options) .drawArc(x, y, x, y, radius, radius) @@ -342,24 +329,19 @@ gm(src) .stroke(color, width) .setDraw(type, x, y, method) .write(dest, (err, stdout, stderr, cmd) => { - }); gm.compare(file, file, (err, isEqual, equality, raw) => { - }); readStream = gm(src).stream(); readStream = gm(src).stream(format); readStream = gm(src).stream(format, (err, stdout, stderr, cmd) => { - }); gm(src).toBuffer((err, buffer) => { - }); gm(src).toBuffer(format, (err, buffer) => { - }); var imageMagick = gm.subClass({ imageMagick: true }); diff --git a/gm/gm.d.ts b/gm/gm.d.ts index ddd77f21ca4a4b..2373300fee378a 100644 --- a/gm/gm.d.ts +++ b/gm/gm.d.ts @@ -612,9 +612,9 @@ declare module "gm" { (image: string): State; } - export function compare(filename1: string, filename2: string, callback: CompareCallback): void ; - export function compare(filename1: string, filename2: string, tolerance: number, callback: CompareCallback): void ; - export function compare(filename1: string, filename2: string, options: CompareOptions, callback: CompareCallback): void ; + export function compare(filename1: string, filename2: string, callback: CompareCallback): void; + export function compare(filename1: string, filename2: string, tolerance: number, callback: CompareCallback): void; + export function compare(filename1: string, filename2: string, options: CompareOptions, callback: CompareCallback): void; export function subClass(options: ClassOptions): SubClass; }