summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-09-22 14:47:19 +0800
committerErik Kundiman <erik@megapahit.org>2026-09-22 14:47:19 +0800
commit8557e9659ca5b71aabcbb21758be03a959c2098d (patch)
treee9c2cb659b646169e8d0c502b0ff873fec05ac02 /indra/newview/llappviewer.cpp
parent235a9d87ecf0447bd4aca3287548c715f1ada2ad (diff)
parentf767219366b8dbaeea95a22bd9953a587f473298 (diff)
Merge tag 'Second_Life_Release#f7672193-26.4' into 26.4
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 8b99657618..d48ccdb9ea 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -667,12 +667,6 @@ bool LLAppViewer::sendURLToOtherInstance(const std::string& url)
return false;
}
-//virtual
-void LLAppViewer::setOSHibernationMode(eHibernationMode mode)
-{
- // See OS specific files
-}
-
//----------------------------------------------------------------------------
// LLAppViewer definition
@@ -6058,29 +6052,6 @@ void LLAppViewer::outOfMemorySoftQuit()
}
}
-void LLAppViewer::setPermitOSHibernation(bool permit)
-{
- if (permit)
- {
- if (mCurrentHibernationMode != LL_HIBERNATE_MODE_DEFAULT)
- {
- // Will call OS specific code to let OS hibernate when idle
- setOSHibernationMode(LL_HIBERNATE_MODE_DEFAULT);
- mCurrentHibernationMode = LL_HIBERNATE_MODE_DEFAULT;
- }
- }
- else
- {
- static LLCachedControl<S32> os_hibernation_mode(gSavedSettings, "OSHibernationMode", 0);
- eHibernationMode mode = static_cast<eHibernationMode>(os_hibernation_mode());
- if (mode != LL_HIBERNATE_MODE_DEFAULT && mCurrentHibernationMode != mode)
- {
- setOSHibernationMode(mode);
- mCurrentHibernationMode = mode;
- }
- }
-}
-
void LLAppViewer::idleNameCache()
{
// Neither old nor new name cache can function before agent has a region
@@ -6288,9 +6259,6 @@ void LLAppViewer::disconnectViewer()
// Pass the connection state to LLUrlEntryParcel not to attempt
// parcel info requests while disconnected.
LLUrlEntryParcel::setDisconnected(gDisconnected);
-
- // Restore default OS hibernation mode
- setPermitOSHibernation(true);
}
void LLAppViewer::forceErrorLLError()
@@ -6582,15 +6550,6 @@ void LLAppViewer::handleLoginComplete()
// we logged in successfully, so save settings on logout
LL_INFOS() << "Login successful, per account settings will be saved on log out." << LL_ENDL;
mSavePerAccountSettings=true;
-
- // Don't allow hibernation while we're running
- setPermitOSHibernation(false);
- // Track 'hibernation' mode changes
- mOSHibernationModeChangeConnection = gSavedSettings.getControl("OSHibernationMode")->getSignal()->connect([](LLControlVariable* control, const LLSD& new_val, const LLSD& old_val)
- {
- // setPermitOSHibernation will sort itself out based on new mode.
- LLAppViewer::instance()->setPermitOSHibernation(false);
- });
}
//virtual