mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
unused method
This commit is contained in:
parent
a70f7c2643
commit
d180d76500
2 changed files with 0 additions and 15 deletions
|
@ -358,20 +358,6 @@ final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
myInsertBookAuthorStatement.execute();
|
||||
}
|
||||
|
||||
protected List<Author> listAuthors() {
|
||||
final Cursor cursor = myDatabase.rawQuery("SELECT name,sort_key FROM Authors", null);
|
||||
if (!cursor.moveToNext()) {
|
||||
cursor.close();
|
||||
return null;
|
||||
}
|
||||
final ArrayList<Author> list = new ArrayList<Author>();
|
||||
do {
|
||||
list.add(new Author(cursor.getString(0), cursor.getString(1)));
|
||||
} while (cursor.moveToNext());
|
||||
cursor.close();
|
||||
return list;
|
||||
}
|
||||
|
||||
protected List<Author> listAuthors(long bookId) {
|
||||
final Cursor cursor = myDatabase.rawQuery("SELECT Authors.name,Authors.sort_key FROM BookAuthor INNER JOIN Authors ON Authors.author_id = BookAuthor.author_id WHERE BookAuthor.book_id = ?", new String[] { "" + bookId });
|
||||
if (!cursor.moveToNext()) {
|
||||
|
|
|
@ -51,7 +51,6 @@ public abstract class BooksDatabase {
|
|||
protected abstract Book loadBook(long bookId);
|
||||
protected abstract Book loadBookByFile(long fileId, ZLFile file);
|
||||
|
||||
protected abstract List<Author> listAuthors();
|
||||
protected abstract List<Author> listAuthors(long bookId);
|
||||
protected abstract List<Tag> listTags(long bookId);
|
||||
protected abstract SeriesInfo getSeriesInfo(long bookId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue