Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Aug 19, 2024
1 parent 71a878d commit 8819687
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
28 changes: 0 additions & 28 deletions vue-client/src/components/inspector/field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export default {
activeModal: false,
removeHover: false,
pasteHover: false,
foundChip: false,
removed: false,
uniqueIds: [],
};
Expand Down Expand Up @@ -374,15 +373,6 @@ export default {
}
return `${this.parentPath}.${this.fieldKey}`;
},
isMarc() {
return this.fieldKey.startsWith('marc:');
},
isChild() {
if (this.parentPath !== 'mainEntity') {
return true;
}
return false;
},
isLangMapWithPartner() {
return this.isLangMap && this.hasProp;
},
Expand Down Expand Up @@ -584,31 +574,13 @@ export default {
}
return false;
},
isInGraph(o) {
const data = this.inspector.data;
for (const point in data) {
if (data[point] !== null) {
if (data[point]['@id'] === o['@id']) {
return true;
}
}
}
return false;
},
isEmbedded(o) {
const type = o['@type'];
if (!type || typeof type === 'undefined') {
return false;
}
return VocabUtil.isEmbedded(type, this.resources.vocab, this.settings);
},
isChip(item) {
if (this.getDatatype(item) === 'entity') {
this.foundChip = true;
return true;
}
return false;
},
highLightLastAdded() {
if (this.isLastAdded === true) {
if (this.fieldValue === null || (isArray(this.fieldValue) && this.fieldValue.length === 0)) {
Expand Down
10 changes: 0 additions & 10 deletions vue-client/src/components/inspector/item-local.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default {
},
data() {
return {
inEdit: false,
showCardInfo: false,
extractDialogActive: false,
propertyAdderOpened: false,
Expand Down Expand Up @@ -225,9 +224,6 @@ export default {
this.expand();
}
},
isHolding() {
return this.inspector.data.mainEntity['@type'] === 'Item';
},
isHistoryView() {
return this.diff !== null;
},
Expand All @@ -249,12 +245,6 @@ export default {
closeExtractDialog() {
this.extractDialogActive = false;
},
openForm() {
this.inEdit = true;
},
closeForm() {
this.inEdit = false;
},
addFocus() {
this.focused = true;
},
Expand Down

0 comments on commit 8819687

Please sign in to comment.