mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +02:00
Cleaned out extra commented code.
This commit is contained in:
parent
bc17febb3f
commit
f49e64b99f
2 changed files with 0 additions and 16 deletions
|
@ -24,8 +24,6 @@ Rectangle {
|
|||
|
||||
function getWhitelistAsText() {
|
||||
var whitelist = Settings.getValue("private/settingsSafeURLS");
|
||||
// var arrayWhitelist = whitelist.split(/\s*,\s*/);
|
||||
// var whitelistText = arrayWhitelist.join("\n");
|
||||
return whitelist;
|
||||
}
|
||||
|
||||
|
@ -86,10 +84,8 @@ Rectangle {
|
|||
|
||||
Button {
|
||||
id: saveChanges
|
||||
// anchors.top: whitelistTextArea.bottom;
|
||||
anchors.topMargin: 5;
|
||||
anchors.leftMargin: 20;
|
||||
// anchors.right: whitelistTextArea.right;
|
||||
anchors.rightMargin: 20;
|
||||
x: textAreaRectangle.x + textAreaRectangle.width - width - 5;
|
||||
y: textAreaRectangle.y + textAreaRectangle.height - height;
|
||||
|
|
|
@ -2370,21 +2370,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
|
|||
// PULL SAFEURLS FROM INTERFACE.JSON Settings
|
||||
|
||||
QVariant raw = Setting::Handle<QVariant>("private/settingsSafeURLS").get();
|
||||
// qDebug() << "raw value" << raw;
|
||||
// qDebug() << "raw value as list" << raw.toList();
|
||||
QStringList settingsSafeURLS = raw.toString().split(QRegExp("[\r\n]+"));
|
||||
safeURLS += settingsSafeURLS;
|
||||
|
||||
// QVariantList settingsSafeURLS = Setting::Handle<QVariantList>("private/settingsSafeURLS").get();
|
||||
// qCDebug(scriptengine) << "ESWsafeURLS" << safeURLS;
|
||||
|
||||
// for (QVariantList::iterator surl = settingsSafeURLS.begin(); surl != settingsSafeURLS.end(); surl++)
|
||||
// {
|
||||
// safeURLS += (*surl).toString();
|
||||
// }
|
||||
|
||||
// for (const auto& s : settingsSafeURLS) safeURLS << s.toString();
|
||||
|
||||
// END PULL SAFEURLS FROM INTERFACE.JSON Settings
|
||||
|
||||
bool isInWhitelist = false; // assume unsafe
|
||||
|
|
Loading…
Reference in a new issue