Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sujitv19196 committed Oct 11, 2023
1 parent fd08082 commit 9c5a2a4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/entities/EPubs/structs/EPubChapterLikeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function _buildContentsFromItems(items) {
const content = [];
for (const item of items) {
if (item.image) {
// const altText = (item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases + '\n' : '') + (item.ocrText ? 'OCR Text: ' + item.ocrText : '');
const altText = item.ocrPhrases ? 'OCR Phrases: ' + item.ocrPhrases : ''
const imageData = new EPubImageData({src: item.image, alt: altText});
content.push(imageData)
Expand Down Expand Up @@ -50,14 +49,6 @@ class EPubChapterLikeData {
if (!title && typeof getTitle === 'function') {
title = getTitle();
}
console.log(data)
contents.forEach(con => {
console.log(con)
if (typeof con === 'object') { // if its an image
// embed OCR data in alt text of image
}
});


this.__data__ = {
id: id || _buildID(),
Expand Down

0 comments on commit 9c5a2a4

Please sign in to comment.