Remove getPosition()

The original idea of including this function in `./view.js` seems to be
that it's shared between the demo reader and Foliate. But

- It's currently not used in the demo reader any more.
- It works, but it lacks features.
- In any case it's not coupled with anything else in `./view.js`, so at
  best it should be a separate module.

Also: remove unused variable and fix indentation
This commit is contained in:
John Factotum
2023-04-02 00:32:33 +08:00
parent c173f5b523
commit 182ab10182
2 changed files with 3 additions and 45 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { View, getPosition } from './view.js'
import { View } from './view.js'
import { createTOCView } from './ui/tree.js'
import { createMenu } from './ui/menu.js'