summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
Diffstat (limited to 'kicad')
-rw-r--r--kicad/lib-render.c6
-rw-r--r--kicad/lib.h1
-rw-r--r--kicad/sch-parse.c4
3 files changed, 1 insertions, 10 deletions
diff --git a/kicad/lib-render.c b/kicad/lib-render.c
index 88691ec..8562976 100644
--- a/kicad/lib-render.c
+++ b/kicad/lib-render.c
@@ -728,12 +728,6 @@ const struct comp *lib_find(const struct lib *lib, const char *name)
}
-bool lib_field_visible(const struct comp *comp, int n)
-{
- return (comp->visible >> n) & 1;
-}
-
-
/* ----- Rendering --------------------------------------------------------- */
diff --git a/kicad/lib.h b/kicad/lib.h
index 6730166..2f628d1 100644
--- a/kicad/lib.h
+++ b/kicad/lib.h
@@ -134,7 +134,6 @@ extern struct comp *comps;
const struct comp *lib_find(const struct lib *lib, const char *name);
-bool lib_field_visible(const struct comp *comp, int n);
void lib_render(const struct comp *comp, struct gfx *gfx,
unsigned unit, unsigned convert, const int m[6]);
void lib_render_extra(const struct comp *comp, struct gfx *gfx,
diff --git a/kicad/sch-parse.c b/kicad/sch-parse.c
index afb543e..f1c42fc 100644
--- a/kicad/sch-parse.c
+++ b/kicad/sch-parse.c
@@ -185,9 +185,7 @@ static bool parse_field(struct sch_ctx *ctx, const char *line)
if (flags) {
/*
* @@@ visibility settings in component only seem to be used only as default
- * for sheet and are ignored thereafter:
- *
- * || (comp->comp && !lib_field_visible(comp->comp, n))) {
+ * for sheet and are ignored thereafter.
*/
free((char *) txt->s);
free(field);