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:
parent
b02937a055
commit
c4bc21f4a4
1 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue