From a927bca4fe3a5b94bf92704e56862e4f76ea2e88 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 14 Apr 2025 11:28:50 +0200 Subject: [PATCH] Removed float as it is not used --- lib/Tables.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/Tables.js b/lib/Tables.js index 108a1ae..40efced 100644 --- a/lib/Tables.js +++ b/lib/Tables.js @@ -569,24 +569,6 @@ class Structure { return this; } - /** - * Adds a new column of data type 'float' to this structure - * @param {String} name - Name of the column - * @param {Number} [p] - Precision. Min 1, Max 53. Defaults to 25 - * @param {ConstraintOptions} [options] - Extra constraint options - * @returns {this} - */ - float(name, p=25, options={}){ - if (!name) throw new Error("name must not be empty"); - if (typeof name !== "string") throwTypeError("string", name); - if (typeof p !== "number") throwTypeError("number", p); - if (typeof options !== "object") throwTypeError("object", options); - if (p < 1 || p > 53) throwRangeError(1, 53, p); - - this.#columns.push(parseColumnData(name, `float(${p})`, options)); - return this; - } - /** * Adds a new column of data type 'double' to this structure * @param {String} name - Name of the column