Skip to content

Commit

Permalink
remove ghost code
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Nov 5, 2024
1 parent 6f9f839 commit 78fc58b
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions lib/components/normal-components/Chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,6 @@ export class Chip<PinLabels extends string = never> extends NormalComponent<
this.source_component_id = source_component.source_component_id!
}

// doInitialSchematicComponentRender() {
// const { db } = this.root!
// const { _parsedProps: props } = this
// const dimensions = this._getSchematicBoxDimensions()!
// this.schematicBoxDimensions = dimensions

// const primaryPortLabels: Record<string, string> = {}
// for (const [port, label] of Object.entries(props.pinLabels ?? {})) {
// primaryPortLabels[port] = Array.isArray(label) ? label[0] : label
// }

// const schematic_component = db.schematic_component.insert({
// center: { x: props.schX ?? 0, y: props.schY ?? 0 },
// rotation: props.schRotation ?? 0,
// size: dimensions.getSize(),

// port_arrangement: underscorifyPortArrangement(
// props.schPortArrangement as any,
// ),

// pin_spacing: props.schPinSpacing ?? 0.2,

// // @ts-ignore soup needs to support distance for pin_styles
// pin_styles: underscorifyPinStyles(props.schPinStyle),

// port_labels: primaryPortLabels,

// source_component_id: this.source_component_id!,
// })

// this.schematic_component_id = schematic_component.schematic_component_id
// }

doInitialPcbComponentRender() {
const { db } = this.root!
const { _parsedProps: props } = this
Expand Down

0 comments on commit 78fc58b

Please sign in to comment.