dead code removal

This commit is contained in:
howard-stearns 2016-08-22 12:50:51 -07:00
parent d0b58d8f8e
commit 989974738a
2 changed files with 1 additions and 7 deletions

View file

@ -162,11 +162,6 @@
// this means you may or may not be logged in, but can't share
// because you are not in a public place.
document.getElementById("sharing").innerHTML = "<p class='prompt'>Snapshots can be shared when they're taken in shareable places.";
} else if (!shareMsg.isLoggedIn) {
// this means you are in a public place, but can't share because
// you need to login. Soon we will just bring up the share dialog
// in this case (and maybe set a boolean here to inform the html)
document.getElementById("sharing").innerHTML = "<p class='prompt'>Snapshots can be shared when you're logged in.";
}
}
window.onload = function () {

View file

@ -55,7 +55,7 @@ function confirmShare(data) {
Settings.setValue('openFeedAfterShare', true)
break;
default:
dialog.webEventReceived.disconnect(onMessage); // I'm not certain that this is necessary. If it is, what do we do on normal close?
dialog.webEventReceived.disconnect(onMessage);
dialog.close();
isLoggedIn = Account.isLoggedIn();
message.forEach(function (submessage) {
@ -139,7 +139,6 @@ function resetButtons(path, notify) {
{ localPath: path },
{
canShare: Boolean(location.placename),
isLoggedIn: true, // Just have the dialog act as though we are. To be removed at both ends later.
openFeedAfterShare: shouldOpenFeedAfterShare()
}
]);