1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00

Remove locations generation from epub

This commit is contained in:
Fred Chasen 2022-02-09 13:22:57 -08:00
parent b02937a055
commit c4bc21f4a4

View file

@ -1,6 +1,5 @@
import EventEmitter from "../utils/eventemitter.js";
import Publication from "../publication/publication.js";
import Locations from "../publication/locations-old.js";
import Container from "./container.js";
import Packaging from "./packaging.js";
import Navigation from "./navigation.js";
@ -187,16 +186,6 @@ class Epub extends Publication {
return this.unpack(packaging);
}
// TODO: move to rendition?
generateLocations(breakPoint) {
let locations = new Locations();
return locations.generate(this.sections, breakPoint)
.then((locations) => {
this.locations = locations;
return locations;
})
}
get spine() {
return this.sections;
}