Commit df395f44 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

placement: Remove unused function

parent 3df79855
......@@ -639,31 +639,6 @@ void Placement::unclutterDesktop()
Placement::Policy Placement::policyFromString(const QString& policy, bool no_special)
if (policy == QStringLiteral("NoPlacement"))
return NoPlacement;
else if (policy == QStringLiteral("Default") && !no_special)
return Default;
else if (policy == QStringLiteral("Random"))
return Random;
else if (policy == QStringLiteral("Cascade"))
return Cascade;
else if (policy == QStringLiteral("Centered"))
return Centered;
else if (policy == QStringLiteral("ZeroCornered"))
return ZeroCornered;
else if (policy == QStringLiteral("UnderMouse"))
return UnderMouse;
else if (policy == QStringLiteral("OnMainWindow") && !no_special)
return OnMainWindow;
else if (policy == QStringLiteral("Maximizing"))
return Maximizing;
return Smart;
const char* Placement::policyToString(Policy policy)
const char* const policies[] = {
......@@ -73,7 +73,6 @@ public:
void unclutterDesktop();
static Policy policyFromString(const QString& policy, bool no_special);
static const char* policyToString(Policy policy);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment