Browse Source

Removing unnecessary comments

master
anthony restaino 7 years ago
parent
commit
cf9dec3dcb
  1. 22
      app/src/main/java/acr/browser/lightning/database/BookmarkManager.java
  2. 3
      app/src/main/java/acr/browser/lightning/database/HistoryModel.java

22
app/src/main/java/acr/browser/lightning/database/BookmarkManager.java

@ -64,17 +64,6 @@ public class BookmarkManager {
mExecutor.execute(new BookmarkInitializer(context)); mExecutor.execute(new BookmarkInitializer(context));
} }
/**
* Look for bookmark using the url
*
* @param url the lookup url
* @return the bookmark as an {@link HistoryItem} or null
*/
@Nullable
public HistoryItem findBookmarkForUrl(final String url) {
return mBookmarksMap.get(url);
}
/** /**
* Initialize the BookmarkManager, it's a one-time operation and will be executed asynchronously. * Initialize the BookmarkManager, it's a one-time operation and will be executed asynchronously.
* When done, mReady flag will been set to true. * When done, mReady flag will been set to true.
@ -177,6 +166,17 @@ public class BookmarkManager {
} }
} }
/**
* Look for bookmark using the url
*
* @param url the lookup url
* @return the bookmark as an {@link HistoryItem} or null
*/
@Nullable
public HistoryItem findBookmarkForUrl(final String url) {
return mBookmarksMap.get(url);
}
public boolean isBookmark(String url) { public boolean isBookmark(String url) {
return mBookmarksMap.containsKey(url); return mBookmarksMap.containsKey(url);
} }

3
app/src/main/java/acr/browser/lightning/database/HistoryModel.java

@ -59,9 +59,6 @@ public final class HistoryModel {
.historyDatabase() .historyDatabase()
.visitHistoryItem(url, title); .visitHistoryItem(url, title);
System.out.println("SHIT: " + BrowserApp.getAppComponent().historyDatabase().toString());
System.out.println("SHIT: " + BrowserApp.getAppComponent().historyDatabase().toString());
subscriber.onComplete(); subscriber.onComplete();
} }
}); });

Loading…
Cancel
Save