CIDARLAB / 3DuF

Detected unnecessary constructors JS-0358
Anti-pattern
Minor
15 days ago3 years old
Useless constructor
 28} from "@/app/core/init";
 29
 30export default class LoadUtils {
 31    constructor() {} 32
 33    static loadFromScratch(json: InterchangeV1_2): [Device, Array<RenderLayer>] {
 34        const newDevice: Device = LoadUtils.loadDeviceFromInterchangeV1_2(json);
 2import { ComponentAPI } from "@/componentAPI";
 3
 4export default class ConnectionUtils {
 5    constructor() {} 6
 7
 8    static getDefinition(stringname: string) {
 2import { ComponentAPI } from "@/componentAPI";
 3
 4export default class ComponentUtils {
 5    constructor() {} 6
 7    static getFeatureFromID(featureid: string) {
 8        return Registry.currentDevice!.getFeatureByID(featureid);
Useless constructor
  5import { CompoundPath } from "paper/dist/paper-core";
  6
  7export default class YTree extends Template {
  8    constructor() {  9        super(); 10    } 11
 12    __setupDefinitions(): void  {
 13        this.__unique = {
Useless constructor
  4import { LogicalLayerType } from "../core/init";
  5
  6export default class Via extends Template {
  7    constructor() {  8        super();  9    } 10
 11    __setupDefinitions(): void  {
 12        this.__unique = {